#[non_exhaustive]pub struct CreateDomainMappingRequest {
pub parent: String,
pub domain_mapping: Option<DomainMapping>,
pub override_strategy: DomainOverrideStrategy,
/* private fields */
}Expand description
Request message for DomainMappings.CreateDomainMapping.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringName of the parent Application resource. Example: apps/myapp.
domain_mapping: Option<DomainMapping>Domain mapping configuration.
override_strategy: DomainOverrideStrategyWhether the domain creation should override any existing mappings for this domain. By default, overrides are rejected.
Implementations§
Source§impl CreateDomainMappingRequest
impl CreateDomainMappingRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_domain_mapping<T>(self, v: T) -> Selfwhere
T: Into<DomainMapping>,
pub fn set_domain_mapping<T>(self, v: T) -> Selfwhere
T: Into<DomainMapping>,
Sets the value of domain_mapping.
Sourcepub fn set_or_clear_domain_mapping<T>(self, v: Option<T>) -> Selfwhere
T: Into<DomainMapping>,
pub fn set_or_clear_domain_mapping<T>(self, v: Option<T>) -> Selfwhere
T: Into<DomainMapping>,
Sets or clears the value of domain_mapping.
Sourcepub fn set_override_strategy<T: Into<DomainOverrideStrategy>>(
self,
v: T,
) -> Self
pub fn set_override_strategy<T: Into<DomainOverrideStrategy>>( self, v: T, ) -> Self
Sets the value of override_strategy.
Trait Implementations§
Source§impl Clone for CreateDomainMappingRequest
impl Clone for CreateDomainMappingRequest
Source§fn clone(&self) -> CreateDomainMappingRequest
fn clone(&self) -> CreateDomainMappingRequest
Returns a duplicate 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 CreateDomainMappingRequest
impl Debug for CreateDomainMappingRequest
Source§impl Default for CreateDomainMappingRequest
impl Default for CreateDomainMappingRequest
Source§fn default() -> CreateDomainMappingRequest
fn default() -> CreateDomainMappingRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateDomainMappingRequest
impl Message for CreateDomainMappingRequest
impl StructuralPartialEq for CreateDomainMappingRequest
Auto Trait Implementations§
impl Freeze for CreateDomainMappingRequest
impl RefUnwindSafe for CreateDomainMappingRequest
impl Send for CreateDomainMappingRequest
impl Sync for CreateDomainMappingRequest
impl Unpin for CreateDomainMappingRequest
impl UnwindSafe for CreateDomainMappingRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more