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