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
/*
* 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.2.0
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
/// SetCustomDomainBody : Update Custom Hostname Body
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct SetCustomDomainBody {
/// The domain where cookies will be set. Has to be a parent domain of the custom hostname to work.
#[serde(rename = "cookie_domain", skip_serializing_if = "Option::is_none")]
pub cookie_domain: Option<String>,
/// CORS Allowed origins for the custom hostname.
#[serde(rename = "cors_allowed_origins", skip_serializing_if = "Option::is_none")]
pub cors_allowed_origins: Option<Vec<String>>,
/// CORS Enabled for the custom hostname.
#[serde(rename = "cors_enabled", skip_serializing_if = "Option::is_none")]
pub cors_enabled: Option<bool>,
/// The custom UI base URL where the UI will be exposed.
#[serde(rename = "custom_ui_base_url", skip_serializing_if = "Option::is_none")]
pub custom_ui_base_url: Option<String>,
/// The custom hostname where the API will be exposed.
#[serde(rename = "hostname", skip_serializing_if = "Option::is_none")]
pub hostname: Option<String>,
}
impl Default for SetCustomDomainBody {
fn default() -> Self {
Self::new()
}
}
impl SetCustomDomainBody {
/// Update Custom Hostname Body
pub fn new() -> SetCustomDomainBody {
SetCustomDomainBody {
cookie_domain: None,
cors_allowed_origins: None,
cors_enabled: None,
custom_ui_base_url: None,
hostname: None,
}
}
}