authentik_rust/models/
notification_webhook_mapping.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// NotificationWebhookMapping : NotificationWebhookMapping Serializer
14#[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    /// NotificationWebhookMapping Serializer
26    pub fn new(pk: uuid::Uuid, name: String, expression: String) -> NotificationWebhookMapping {
27        NotificationWebhookMapping {
28            pk,
29            name,
30            expression,
31        }
32    }
33}
34