authentik_rust/models/
current_brand.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/// CurrentBrand : Partial brand information for styling
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CurrentBrand {
16    #[serde(rename = "matched_domain")]
17    pub matched_domain: String,
18    #[serde(rename = "branding_title")]
19    pub branding_title: String,
20    #[serde(rename = "branding_logo")]
21    pub branding_logo: String,
22    #[serde(rename = "branding_favicon")]
23    pub branding_favicon: String,
24    #[serde(rename = "ui_footer_links")]
25    pub ui_footer_links: Vec<models::FooterLink>,
26    #[serde(rename = "ui_theme")]
27    pub ui_theme: models::UiThemeEnum,
28    #[serde(rename = "flow_authentication", skip_serializing_if = "Option::is_none")]
29    pub flow_authentication: Option<String>,
30    #[serde(rename = "flow_invalidation", skip_serializing_if = "Option::is_none")]
31    pub flow_invalidation: Option<String>,
32    #[serde(rename = "flow_recovery", skip_serializing_if = "Option::is_none")]
33    pub flow_recovery: Option<String>,
34    #[serde(rename = "flow_unenrollment", skip_serializing_if = "Option::is_none")]
35    pub flow_unenrollment: Option<String>,
36    #[serde(rename = "flow_user_settings", skip_serializing_if = "Option::is_none")]
37    pub flow_user_settings: Option<String>,
38    #[serde(rename = "flow_device_code", skip_serializing_if = "Option::is_none")]
39    pub flow_device_code: Option<String>,
40    #[serde(rename = "default_locale")]
41    pub default_locale: String,
42}
43
44impl CurrentBrand {
45    /// Partial brand information for styling
46    pub fn new(matched_domain: String, branding_title: String, branding_logo: String, branding_favicon: String, ui_footer_links: Vec<models::FooterLink>, ui_theme: models::UiThemeEnum, default_locale: String) -> CurrentBrand {
47        CurrentBrand {
48            matched_domain,
49            branding_title,
50            branding_logo,
51            branding_favicon,
52            ui_footer_links,
53            ui_theme,
54            flow_authentication: None,
55            flow_invalidation: None,
56            flow_recovery: None,
57            flow_unenrollment: None,
58            flow_user_settings: None,
59            flow_device_code: None,
60            default_locale,
61        }
62    }
63}
64