1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
 * Ory APIs
 *
 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. 
 *
 * The version of the OpenAPI document: v1.1.25
 * Contact: support@ory.sh
 * Generated by: https://openapi-generator.tech
 */

/// ProjectBrandingColors : The Project Branding Colors



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProjectBrandingColors {
    /// AccentDefaultColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "accent_default_color", skip_serializing_if = "Option::is_none")]
    pub accent_default_color: Option<String>,
    /// AccentDisabledColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "accent_disabled_color", skip_serializing_if = "Option::is_none")]
    pub accent_disabled_color: Option<String>,
    /// AccentEmphasisColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "accent_emphasis_color", skip_serializing_if = "Option::is_none")]
    pub accent_emphasis_color: Option<String>,
    /// AccentMutedColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "accent_muted_color", skip_serializing_if = "Option::is_none")]
    pub accent_muted_color: Option<String>,
    /// AccentSubtleColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "accent_subtle_color", skip_serializing_if = "Option::is_none")]
    pub accent_subtle_color: Option<String>,
    /// BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "background_canvas_color", skip_serializing_if = "Option::is_none")]
    pub background_canvas_color: Option<String>,
    /// BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "background_subtle_color", skip_serializing_if = "Option::is_none")]
    pub background_subtle_color: Option<String>,
    /// BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "background_surface_color", skip_serializing_if = "Option::is_none")]
    pub background_surface_color: Option<String>,
    /// BorderDefaultColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "border_default_color", skip_serializing_if = "Option::is_none")]
    pub border_default_color: Option<String>,
    /// ErrorDefaultColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "error_default_color", skip_serializing_if = "Option::is_none")]
    pub error_default_color: Option<String>,
    /// ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "error_emphasis_color", skip_serializing_if = "Option::is_none")]
    pub error_emphasis_color: Option<String>,
    /// ErrorMutedColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "error_muted_color", skip_serializing_if = "Option::is_none")]
    pub error_muted_color: Option<String>,
    /// ErrorSubtleColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "error_subtle_color", skip_serializing_if = "Option::is_none")]
    pub error_subtle_color: Option<String>,
    /// ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_default_color", skip_serializing_if = "Option::is_none")]
    pub foreground_default_color: Option<String>,
    /// ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_disabled_color", skip_serializing_if = "Option::is_none")]
    pub foreground_disabled_color: Option<String>,
    /// ForegroundMutedColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_muted_color", skip_serializing_if = "Option::is_none")]
    pub foreground_muted_color: Option<String>,
    /// ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_on_accent_color", skip_serializing_if = "Option::is_none")]
    pub foreground_on_accent_color: Option<String>,
    /// ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_on_dark_color", skip_serializing_if = "Option::is_none")]
    pub foreground_on_dark_color: Option<String>,
    /// ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_on_disabled_color", skip_serializing_if = "Option::is_none")]
    pub foreground_on_disabled_color: Option<String>,
    /// ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "foreground_subtle_color", skip_serializing_if = "Option::is_none")]
    pub foreground_subtle_color: Option<String>,
    /// InputBackgroundColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "input_background_color", skip_serializing_if = "Option::is_none")]
    pub input_background_color: Option<String>,
    /// InputDisabledColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "input_disabled_color", skip_serializing_if = "Option::is_none")]
    pub input_disabled_color: Option<String>,
    /// InputPlaceholderColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "input_placeholder_color", skip_serializing_if = "Option::is_none")]
    pub input_placeholder_color: Option<String>,
    /// InputTextColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "input_text_color", skip_serializing_if = "Option::is_none")]
    pub input_text_color: Option<String>,
    /// Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme.
    #[serde(rename = "primary_color", skip_serializing_if = "Option::is_none")]
    pub primary_color: Option<String>,
    /// Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme.
    #[serde(rename = "secondary_color", skip_serializing_if = "Option::is_none")]
    pub secondary_color: Option<String>,
    /// SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "success_emphasis_color", skip_serializing_if = "Option::is_none")]
    pub success_emphasis_color: Option<String>,
    /// TextDefaultColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "text_default_color", skip_serializing_if = "Option::is_none")]
    pub text_default_color: Option<String>,
    /// TextDisabledColor is a hex color code used by the Ory Account Experience theme.
    #[serde(rename = "text_disabled_color", skip_serializing_if = "Option::is_none")]
    pub text_disabled_color: Option<String>,
}

impl Default for ProjectBrandingColors {
    fn default() -> Self {
        Self::new()
    }
}

impl ProjectBrandingColors {
    /// The Project Branding Colors
    pub fn new() -> ProjectBrandingColors {
        ProjectBrandingColors {
                accent_default_color: None,
                accent_disabled_color: None,
                accent_emphasis_color: None,
                accent_muted_color: None,
                accent_subtle_color: None,
                background_canvas_color: None,
                background_subtle_color: None,
                background_surface_color: None,
                border_default_color: None,
                error_default_color: None,
                error_emphasis_color: None,
                error_muted_color: None,
                error_subtle_color: None,
                foreground_default_color: None,
                foreground_disabled_color: None,
                foreground_muted_color: None,
                foreground_on_accent_color: None,
                foreground_on_dark_color: None,
                foreground_on_disabled_color: None,
                foreground_subtle_color: None,
                input_background_color: None,
                input_disabled_color: None,
                input_placeholder_color: None,
                input_text_color: None,
                primary_color: None,
                secondary_color: None,
                success_emphasis_color: None,
                text_default_color: None,
                text_disabled_color: None,
        }
    }
}