clerk_fapi_rs/models/
client_environment.rs

1/*
2 * Clerk Frontend API
3 *
4 * The Clerk REST Frontend API, meant to be accessed from a browser or native environment.  This is a Form Based API and all the data must be sent and formatted according to the `application/x-www-form-urlencoded` content type.  ### Versions  When the API changes in a way that isn't compatible with older versions, a new version is released. Each version is identified by its release date, e.g. `2021-02-05`. For more information, please see [Clerk API Versions](https://clerk.com/docs/backend-requests/versioning/overview).  ### Using the Try It Console  The `Try It` feature of the docs only works for **Development Instances** when using the `DevBrowser` security scheme. To use it, first generate a dev instance token from the `/v1/dev_browser` endpoint.  Please see https://clerk.com/docs for more information.
5 *
6 * The version of the OpenAPI document: v1
7 * Contact: support@clerk.com
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 ClientEnvironment {
16    #[serde(rename = "auth_config", skip_serializing_if = "Option::is_none")]
17    pub auth_config: Option<Box<models::ClientAuthConfig>>,
18    #[serde(rename = "display_config", skip_serializing_if = "Option::is_none")]
19    pub display_config: Option<Box<models::ClientDisplayConfig>>,
20    #[serde(rename = "user_settings", skip_serializing_if = "Option::is_none")]
21    pub user_settings: Option<Box<models::ClientUserSettings>>,
22    #[serde(
23        rename = "organization_settings",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub organization_settings: Option<Box<models::ClientOrganizationSettings>>,
27    #[serde(rename = "fraud_settings", skip_serializing_if = "Option::is_none")]
28    pub fraud_settings: Option<Box<models::ClientFraudSettings>>,
29    #[serde(rename = "commerce_settings", skip_serializing_if = "Option::is_none")]
30    pub commerce_settings: Option<Box<models::ClientCommerceSettings>>,
31    #[serde(rename = "api_keys_settings", skip_serializing_if = "Option::is_none")]
32    pub api_keys_settings: Option<Box<models::ClientApiKeysSettings>>,
33    #[serde(rename = "client_debug_mode", skip_serializing_if = "Option::is_none")]
34    pub client_debug_mode: Option<bool>,
35    #[serde(rename = "maintenance_mode", skip_serializing_if = "Option::is_none")]
36    pub maintenance_mode: Option<bool>,
37}
38
39impl ClientEnvironment {
40    pub fn new() -> ClientEnvironment {
41        ClientEnvironment {
42            auth_config: None,
43            display_config: None,
44            user_settings: None,
45            organization_settings: None,
46            fraud_settings: None,
47            commerce_settings: None,
48            api_keys_settings: None,
49            client_debug_mode: None,
50            maintenance_mode: None,
51        }
52    }
53}