#[non_exhaustive]pub struct UpdateSecretRequest {
pub secret: Option<Secret>,
pub update_mask: Option<FieldMask>,
}Expand description
Request message for SecretManagerService.UpdateSecret.
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.secret: Option<Secret>Required. Secret with updated field values.
update_mask: Option<FieldMask>Required. Specifies the fields to be updated.
Implementations§
Source§impl UpdateSecretRequest
impl UpdateSecretRequest
Sourcepub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
pub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
Sets the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateSecretRequest
impl Clone for UpdateSecretRequest
Source§fn clone(&self) -> UpdateSecretRequest
fn clone(&self) -> UpdateSecretRequest
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 UpdateSecretRequest
impl Debug for UpdateSecretRequest
Source§impl Default for UpdateSecretRequest
impl Default for UpdateSecretRequest
Source§fn default() -> UpdateSecretRequest
fn default() -> UpdateSecretRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateSecretRequestwhere
UpdateSecretRequest: Default,
impl<'de> Deserialize<'de> for UpdateSecretRequestwhere
UpdateSecretRequest: Default,
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 Message for UpdateSecretRequest
impl Message for UpdateSecretRequest
Source§impl PartialEq for UpdateSecretRequest
impl PartialEq for UpdateSecretRequest
Source§impl Serialize for UpdateSecretRequest
impl Serialize for UpdateSecretRequest
impl StructuralPartialEq for UpdateSecretRequest
Auto Trait Implementations§
impl Freeze for UpdateSecretRequest
impl RefUnwindSafe for UpdateSecretRequest
impl Send for UpdateSecretRequest
impl Sync for UpdateSecretRequest
impl Unpin for UpdateSecretRequest
impl UnwindSafe for UpdateSecretRequest
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