#[non_exhaustive]pub struct UpdateCmekConfigRequest {
pub config: Option<CmekConfig>,
pub set_default: bool,
/* private fields */
}Available on crate feature
cmek-config-service only.Expand description
Request message for UpdateCmekConfig method. rpc.
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.config: Option<CmekConfig>Required. The CmekConfig resource.
set_default: boolSet the following CmekConfig as the default to be used for child resources if one is not specified.
Implementations§
Source§impl UpdateCmekConfigRequest
impl UpdateCmekConfigRequest
pub fn new() -> Self
Sourcepub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<CmekConfig>,
pub fn set_config<T>(self, v: T) -> Selfwhere
T: Into<CmekConfig>,
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CmekConfig>,
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CmekConfig>,
Sourcepub fn set_set_default<T: Into<bool>>(self, v: T) -> Self
pub fn set_set_default<T: Into<bool>>(self, v: T) -> Self
Sets the value of set_default.
§Example
ⓘ
let x = UpdateCmekConfigRequest::new().set_set_default(true);Trait Implementations§
Source§impl Clone for UpdateCmekConfigRequest
impl Clone for UpdateCmekConfigRequest
Source§fn clone(&self) -> UpdateCmekConfigRequest
fn clone(&self) -> UpdateCmekConfigRequest
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 UpdateCmekConfigRequest
impl Debug for UpdateCmekConfigRequest
Source§impl Default for UpdateCmekConfigRequest
impl Default for UpdateCmekConfigRequest
Source§fn default() -> UpdateCmekConfigRequest
fn default() -> UpdateCmekConfigRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateCmekConfigRequest
impl Message for UpdateCmekConfigRequest
Source§impl PartialEq for UpdateCmekConfigRequest
impl PartialEq for UpdateCmekConfigRequest
impl StructuralPartialEq for UpdateCmekConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateCmekConfigRequest
impl RefUnwindSafe for UpdateCmekConfigRequest
impl Send for UpdateCmekConfigRequest
impl Sync for UpdateCmekConfigRequest
impl Unpin for UpdateCmekConfigRequest
impl UnwindSafe for UpdateCmekConfigRequest
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