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.8
* Contact: support@ory.sh
* Generated by: https://openapi-generator.tech
*/
/// CreateCustomDomainBody : Create Custom Hostname Request Body
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateCustomDomainBody {
/// 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 base URL where the custom user interface 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 CreateCustomDomainBody {
fn default() -> Self {
Self::new()
}
}
impl CreateCustomDomainBody {
/// Create Custom Hostname Request Body
pub fn new() -> CreateCustomDomainBody {
CreateCustomDomainBody {
cookie_domain: None,
cors_allowed_origins: None,
cors_enabled: None,
custom_ui_base_url: None,
hostname: None,
}
}
}