openzeppelin_relayer/models/notification/
repository.rs

1use serde::{Deserialize, Serialize};
2
3use crate::models::SecretString;
4
5#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
6#[serde(rename_all = "lowercase")]
7pub enum NotificationType {
8    Webhook,
9}
10
11#[derive(Debug, Clone, Serialize)]
12pub struct NotificationRepoModel {
13    pub id: String,
14    pub notification_type: NotificationType,
15    pub url: String,
16    pub signing_key: Option<SecretString>,
17}