authentik_rust/models/
patched_domain_request.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/// PatchedDomainRequest : Domain Serializer
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PatchedDomainRequest {
16    #[serde(rename = "domain", skip_serializing_if = "Option::is_none")]
17    pub domain: Option<String>,
18    #[serde(rename = "is_primary", skip_serializing_if = "Option::is_none")]
19    pub is_primary: Option<bool>,
20    #[serde(rename = "tenant", skip_serializing_if = "Option::is_none")]
21    pub tenant: Option<uuid::Uuid>,
22}
23
24impl PatchedDomainRequest {
25    /// Domain Serializer
26    pub fn new() -> PatchedDomainRequest {
27        PatchedDomainRequest {
28            domain: None,
29            is_primary: None,
30            tenant: None,
31        }
32    }
33}
34