#[non_exhaustive]pub struct UpdateTagValueRequest {
pub tag_value: Option<TagValue>,
pub update_mask: Option<FieldMask>,
pub validate_only: bool,
}Expand description
The request message for updating a TagValue.
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.tag_value: Option<TagValue>Required. The new definition of the TagValue. Only fields description and
etag fields can be updated by this request. If the etag field is
nonempty, it must match the etag field of the existing ControlGroup.
Otherwise, ABORTED will be returned.
update_mask: Option<FieldMask>Optional. Fields to be updated.
validate_only: boolOptional. True to perform validations necessary for updating the resource, but not actually perform the action.
Implementations§
Source§impl UpdateTagValueRequest
impl UpdateTagValueRequest
Sourcepub fn set_tag_value<T: Into<Option<TagValue>>>(self, v: T) -> Self
pub fn set_tag_value<T: Into<Option<TagValue>>>(self, v: T) -> Self
Sets the value of tag_value.
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.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for UpdateTagValueRequest
impl Clone for UpdateTagValueRequest
Source§fn clone(&self) -> UpdateTagValueRequest
fn clone(&self) -> UpdateTagValueRequest
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 UpdateTagValueRequest
impl Debug for UpdateTagValueRequest
Source§impl Default for UpdateTagValueRequest
impl Default for UpdateTagValueRequest
Source§fn default() -> UpdateTagValueRequest
fn default() -> UpdateTagValueRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateTagValueRequestwhere
UpdateTagValueRequest: Default,
impl<'de> Deserialize<'de> for UpdateTagValueRequestwhere
UpdateTagValueRequest: 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 UpdateTagValueRequest
impl Message for UpdateTagValueRequest
Source§impl PartialEq for UpdateTagValueRequest
impl PartialEq for UpdateTagValueRequest
Source§impl Serialize for UpdateTagValueRequest
impl Serialize for UpdateTagValueRequest
impl StructuralPartialEq for UpdateTagValueRequest
Auto Trait Implementations§
impl Freeze for UpdateTagValueRequest
impl RefUnwindSafe for UpdateTagValueRequest
impl Send for UpdateTagValueRequest
impl Sync for UpdateTagValueRequest
impl Unpin for UpdateTagValueRequest
impl UnwindSafe for UpdateTagValueRequest
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