Skip to main content

authentik_client/models/
patched_domain_request.rs

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