pub struct SetCustomDomainBody {
pub cookie_domain: Option<String>,
pub cors_allowed_origins: Option<Vec<String>>,
pub cors_enabled: Option<bool>,
pub hostname: Option<String>,
}
Expand description
SetCustomDomainBody : Update Custom Hostname Body
Fields§
The domain where cookies will be set. Has to be a parent domain of the custom hostname to work.
cors_allowed_origins: Option<Vec<String>>
CORS Allowed origins for the custom hostname.
cors_enabled: Option<bool>
CORS Enabled for the custom hostname.
hostname: Option<String>
The custom hostname where the API will be exposed.
Implementations§
source§impl SetCustomDomainBody
impl SetCustomDomainBody
sourcepub fn new() -> SetCustomDomainBody
pub fn new() -> SetCustomDomainBody
Update Custom Hostname Body
Trait Implementations§
source§impl Clone for SetCustomDomainBody
impl Clone for SetCustomDomainBody
source§fn clone(&self) -> SetCustomDomainBody
fn clone(&self) -> SetCustomDomainBody
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SetCustomDomainBody
impl Debug for SetCustomDomainBody
source§impl Default for SetCustomDomainBody
impl Default for SetCustomDomainBody
source§impl<'de> Deserialize<'de> for SetCustomDomainBody
impl<'de> Deserialize<'de> for SetCustomDomainBody
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SetCustomDomainBody> for SetCustomDomainBody
impl PartialEq<SetCustomDomainBody> for SetCustomDomainBody
source§fn eq(&self, other: &SetCustomDomainBody) -> bool
fn eq(&self, other: &SetCustomDomainBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.