authentik_rust/models/
notification_webhook_mapping.rs1use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NotificationWebhookMapping {
16 #[serde(rename = "pk")]
17 pub pk: uuid::Uuid,
18 #[serde(rename = "name")]
19 pub name: String,
20 #[serde(rename = "expression")]
21 pub expression: String,
22}
23
24impl NotificationWebhookMapping {
25 pub fn new(pk: uuid::Uuid, name: String, expression: String) -> NotificationWebhookMapping {
27 NotificationWebhookMapping {
28 pk,
29 name,
30 expression,
31 }
32 }
33}
34