Skip to main content

authentik_client/models/
patched_notification_webhook_mapping_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.10.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PatchedNotificationWebhookMappingRequest : NotificationWebhookMapping Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PatchedNotificationWebhookMappingRequest {
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    #[serde(rename = "expression", skip_serializing_if = "Option::is_none")]
20    pub expression: Option<String>,
21}
22
23impl PatchedNotificationWebhookMappingRequest {
24    /// NotificationWebhookMapping Serializer
25    pub fn new() -> PatchedNotificationWebhookMappingRequest {
26        PatchedNotificationWebhookMappingRequest {
27            name: None,
28            expression: None,
29        }
30    }
31}