/*
* Clerk Backend API
*
* The Clerk REST Backend API, meant to be accessed by backend servers. Please see https://clerk.com/docs for more information.
*
* The version of the OpenAPI document: v1
* Contact: support@clerk.com
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddDomainRequest {
/// The new domain name. Can contain the port for development instances.
#[serde(rename = "name")]
pub name: String,
/// Marks the new domain as satellite. Only `true` is accepted at the moment.
#[serde(rename = "is_satellite")]
pub is_satellite: bool,
/// The full URL of the proxy which will forward requests to the Clerk Frontend API for this domain. Applicable only to production instances.
#[serde(rename = "proxy_url", skip_serializing_if = "Option::is_none")]
pub proxy_url: Option<String>,
}
impl AddDomainRequest {
pub fn new(name: String, is_satellite: bool) -> AddDomainRequest {
AddDomainRequest {
name,
is_satellite,
proxy_url: None,
}
}
}