Skip to main content

authentik_client/models/
notification_request.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2025.12.4
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// NotificationRequest : Notification Serializer
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct NotificationRequest {
17    #[serde(
18        rename = "hyperlink",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub hyperlink: Option<Option<String>>,
24    #[serde(
25        rename = "hyperlink_label",
26        default,
27        with = "::serde_with::rust::double_option",
28        skip_serializing_if = "Option::is_none"
29    )]
30    pub hyperlink_label: Option<Option<String>>,
31    #[serde(rename = "event", skip_serializing_if = "Option::is_none")]
32    pub event: Option<models::EventRequest>,
33    #[serde(rename = "seen", skip_serializing_if = "Option::is_none")]
34    pub seen: Option<bool>,
35}
36
37impl NotificationRequest {
38    /// Notification Serializer
39    pub fn new() -> NotificationRequest {
40        NotificationRequest {
41            hyperlink: None,
42            hyperlink_label: None,
43            event: None,
44            seen: None,
45        }
46    }
47}