ory_client/models/
project_branding_theme.rs

1/*
2 * Ory APIs
3 *
4 * # Introduction 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.  ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages:  | Language       | Download SDK                                                     | Documentation                                                                        | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart           | [pub.dev](https://pub.dev/packages/ory_client)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md)       | | .NET           | [nuget.org](https://www.nuget.org/packages/Ory.Client/)          | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md)     | | Elixir         | [hex.pm](https://hex.pm/packages/ory_client)                     | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md)     | | Go             | [github.com](https://github.com/ory/client-go)                   | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md)         | | Java           | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md)       | | JavaScript     | [npmjs.com](https://www.npmjs.com/package/@ory/client)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch)           | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) |  | PHP            | [packagist.org](https://packagist.org/packages/ory/client)       | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md)        | | Python         | [pypi.org](https://pypi.org/project/ory-client/)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md)     | | Ruby           | [rubygems.org](https://rubygems.org/gems/ory-client)             | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md)       | | Rust           | [crates.io](https://crates.io/crates/ory-client)                 | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md)       | 
5 *
6 * The version of the OpenAPI document: v1.22.21
7 * Contact: support@ory.sh
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ProjectBrandingTheme {
16    /// AccentDefaultColor is a hex color code used by the Ory Account Experience theme.
17    #[serde(rename = "accent_default_color", skip_serializing_if = "Option::is_none")]
18    pub accent_default_color: Option<String>,
19    /// AccentDisabledColor is a hex color code used by the Ory Account Experience theme.
20    #[serde(rename = "accent_disabled_color", skip_serializing_if = "Option::is_none")]
21    pub accent_disabled_color: Option<String>,
22    /// AccentEmphasisColor is a hex color code used by the Ory Account Experience theme.
23    #[serde(rename = "accent_emphasis_color", skip_serializing_if = "Option::is_none")]
24    pub accent_emphasis_color: Option<String>,
25    /// AccentMutedColor is a hex color code used by the Ory Account Experience theme.
26    #[serde(rename = "accent_muted_color", skip_serializing_if = "Option::is_none")]
27    pub accent_muted_color: Option<String>,
28    /// AccentSubtleColor is a hex color code used by the Ory Account Experience theme.
29    #[serde(rename = "accent_subtle_color", skip_serializing_if = "Option::is_none")]
30    pub accent_subtle_color: Option<String>,
31    /// BackgroundCanvasColor is a hex color code used by the Ory Account Experience theme.
32    #[serde(rename = "background_canvas_color", skip_serializing_if = "Option::is_none")]
33    pub background_canvas_color: Option<String>,
34    /// BackgroundSubtleColor is a hex color code used by the Ory Account Experience theme.
35    #[serde(rename = "background_subtle_color", skip_serializing_if = "Option::is_none")]
36    pub background_subtle_color: Option<String>,
37    /// BackgroundSurfaceColor is a hex color code used by the Ory Account Experience theme.
38    #[serde(rename = "background_surface_color", skip_serializing_if = "Option::is_none")]
39    pub background_surface_color: Option<String>,
40    /// BorderDefaultColor is a hex color code used by the Ory Account Experience theme.
41    #[serde(rename = "border_default_color", skip_serializing_if = "Option::is_none")]
42    pub border_default_color: Option<String>,
43    /// The Customization Creation Date.
44    #[serde(rename = "created_at")]
45    pub created_at: String,
46    /// ErrorDefaultColor is a hex color code used by the Ory Account Experience theme.
47    #[serde(rename = "error_default_color", skip_serializing_if = "Option::is_none")]
48    pub error_default_color: Option<String>,
49    /// ErrorEmphasisColor is a hex color code used by the Ory Account Experience theme.
50    #[serde(rename = "error_emphasis_color", skip_serializing_if = "Option::is_none")]
51    pub error_emphasis_color: Option<String>,
52    /// ErrorMutedColor is a hex color code used by the Ory Account Experience theme.
53    #[serde(rename = "error_muted_color", skip_serializing_if = "Option::is_none")]
54    pub error_muted_color: Option<String>,
55    /// ErrorSubtleColor is a hex color code used by the Ory Account Experience theme.
56    #[serde(rename = "error_subtle_color", skip_serializing_if = "Option::is_none")]
57    pub error_subtle_color: Option<String>,
58    /// Favicon Type The Favicon mime type.
59    #[serde(rename = "favicon_type", skip_serializing_if = "Option::is_none")]
60    pub favicon_type: Option<String>,
61    /// Favicon URL Favicon can be an https:// or base64:// URL. If the URL is not allowed, the favicon will be stored inside the Ory Network storage bucket.
62    #[serde(rename = "favicon_url", skip_serializing_if = "Option::is_none")]
63    pub favicon_url: Option<String>,
64    /// ForegroundDefaultColor is a hex color code used by the Ory Account Experience theme.
65    #[serde(rename = "foreground_default_color", skip_serializing_if = "Option::is_none")]
66    pub foreground_default_color: Option<String>,
67    /// ForegroundDisabledColor is a hex color code used by the Ory Account Experience theme.
68    #[serde(rename = "foreground_disabled_color", skip_serializing_if = "Option::is_none")]
69    pub foreground_disabled_color: Option<String>,
70    /// ForegroundMutedColor is a hex color code used by the Ory Account Experience theme.
71    #[serde(rename = "foreground_muted_color", skip_serializing_if = "Option::is_none")]
72    pub foreground_muted_color: Option<String>,
73    /// ForegroundOnAccentColor is a hex color code used by the Ory Account Experience theme.
74    #[serde(rename = "foreground_on_accent_color", skip_serializing_if = "Option::is_none")]
75    pub foreground_on_accent_color: Option<String>,
76    /// ForegroundOnDarkColor is a hex color code used by the Ory Account Experience theme.
77    #[serde(rename = "foreground_on_dark_color", skip_serializing_if = "Option::is_none")]
78    pub foreground_on_dark_color: Option<String>,
79    /// ForegroundOnDisabledColor is a hex color code used by the Ory Account Experience theme.
80    #[serde(rename = "foreground_on_disabled_color", skip_serializing_if = "Option::is_none")]
81    pub foreground_on_disabled_color: Option<String>,
82    /// ForegroundSubtleColor is a hex color code used by the Ory Account Experience theme.
83    #[serde(rename = "foreground_subtle_color", skip_serializing_if = "Option::is_none")]
84    pub foreground_subtle_color: Option<String>,
85    /// The customization theme ID.
86    #[serde(rename = "id")]
87    pub id: String,
88    /// InputBackgroundColor is a hex color code used by the Ory Account Experience theme.
89    #[serde(rename = "input_background_color", skip_serializing_if = "Option::is_none")]
90    pub input_background_color: Option<String>,
91    /// InputDisabledColor is a hex color code used by the Ory Account Experience theme.
92    #[serde(rename = "input_disabled_color", skip_serializing_if = "Option::is_none")]
93    pub input_disabled_color: Option<String>,
94    /// InputPlaceholderColor is a hex color code used by the Ory Account Experience theme.
95    #[serde(rename = "input_placeholder_color", skip_serializing_if = "Option::is_none")]
96    pub input_placeholder_color: Option<String>,
97    /// InputTextColor is a hex color code used by the Ory Account Experience theme.
98    #[serde(rename = "input_text_color", skip_serializing_if = "Option::is_none")]
99    pub input_text_color: Option<String>,
100    /// Logo Type The Logo mime type.
101    #[serde(rename = "logo_type", skip_serializing_if = "Option::is_none")]
102    pub logo_type: Option<String>,
103    /// Logo URL Logo can be an https:// or base64:// URL. If the URL is not allowed, the logo will be stored inside the Ory Network storage bucket.
104    #[serde(rename = "logo_url", skip_serializing_if = "Option::is_none")]
105    pub logo_url: Option<String>,
106    /// The customization theme name.
107    #[serde(rename = "name")]
108    pub name: String,
109    /// Primary color is an hsla color value used to derive the other colors from for the Ory Account Experience theme.
110    #[serde(rename = "primary_color", skip_serializing_if = "Option::is_none")]
111    pub primary_color: Option<String>,
112    /// The ProjectBranding ID this customization is associated with.
113    #[serde(rename = "project_branding_id")]
114    pub project_branding_id: String,
115    /// Secondary color is a hsla color code used to derive the other colors from for the Ory Account Experience theme.
116    #[serde(rename = "secondary_color", skip_serializing_if = "Option::is_none")]
117    pub secondary_color: Option<String>,
118    /// SuccessEmphasisColor is a hex color code used by the Ory Account Experience theme.
119    #[serde(rename = "success_emphasis_color", skip_serializing_if = "Option::is_none")]
120    pub success_emphasis_color: Option<String>,
121    /// TextDefaultColor is a hex color code used by the Ory Account Experience theme.
122    #[serde(rename = "text_default_color", skip_serializing_if = "Option::is_none")]
123    pub text_default_color: Option<String>,
124    /// TextDisabledColor is a hex color code used by the Ory Account Experience theme.
125    #[serde(rename = "text_disabled_color", skip_serializing_if = "Option::is_none")]
126    pub text_disabled_color: Option<String>,
127    /// Last Time Branding was Updated.
128    #[serde(rename = "updated_at")]
129    pub updated_at: String,
130}
131
132impl ProjectBrandingTheme {
133    pub fn new(created_at: String, id: String, name: String, project_branding_id: String, updated_at: String) -> ProjectBrandingTheme {
134        ProjectBrandingTheme {
135            accent_default_color: None,
136            accent_disabled_color: None,
137            accent_emphasis_color: None,
138            accent_muted_color: None,
139            accent_subtle_color: None,
140            background_canvas_color: None,
141            background_subtle_color: None,
142            background_surface_color: None,
143            border_default_color: None,
144            created_at,
145            error_default_color: None,
146            error_emphasis_color: None,
147            error_muted_color: None,
148            error_subtle_color: None,
149            favicon_type: None,
150            favicon_url: None,
151            foreground_default_color: None,
152            foreground_disabled_color: None,
153            foreground_muted_color: None,
154            foreground_on_accent_color: None,
155            foreground_on_dark_color: None,
156            foreground_on_disabled_color: None,
157            foreground_subtle_color: None,
158            id,
159            input_background_color: None,
160            input_disabled_color: None,
161            input_placeholder_color: None,
162            input_text_color: None,
163            logo_type: None,
164            logo_url: None,
165            name,
166            primary_color: None,
167            project_branding_id,
168            secondary_color: None,
169            success_emphasis_color: None,
170            text_default_color: None,
171            text_disabled_color: None,
172            updated_at,
173        }
174    }
175}
176