#[non_exhaustive]pub struct CreateServiceRequest {
pub service: Option<ManagedService>,
/* private fields */
}Expand description
Request message for CreateService method.
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.service: Option<ManagedService>Required. Initial values for the service resource.
Implementations§
Source§impl CreateServiceRequest
impl CreateServiceRequest
pub fn new() -> Self
Sourcepub fn set_service<T>(self, v: T) -> Selfwhere
T: Into<ManagedService>,
pub fn set_service<T>(self, v: T) -> Selfwhere
T: Into<ManagedService>,
Sets the value of service.
Sourcepub fn set_or_clear_service<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedService>,
pub fn set_or_clear_service<T>(self, v: Option<T>) -> Selfwhere
T: Into<ManagedService>,
Sets or clears the value of service.
Trait Implementations§
Source§impl Clone for CreateServiceRequest
impl Clone for CreateServiceRequest
Source§fn clone(&self) -> CreateServiceRequest
fn clone(&self) -> CreateServiceRequest
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 CreateServiceRequest
impl Debug for CreateServiceRequest
Source§impl Default for CreateServiceRequest
impl Default for CreateServiceRequest
Source§fn default() -> CreateServiceRequest
fn default() -> CreateServiceRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateServiceRequest
impl Message for CreateServiceRequest
Source§impl PartialEq for CreateServiceRequest
impl PartialEq for CreateServiceRequest
impl StructuralPartialEq for CreateServiceRequest
Auto Trait Implementations§
impl Freeze for CreateServiceRequest
impl RefUnwindSafe for CreateServiceRequest
impl Send for CreateServiceRequest
impl Sync for CreateServiceRequest
impl Unpin for CreateServiceRequest
impl UnwindSafe for CreateServiceRequest
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