#[non_exhaustive]pub struct UpdateTagKeyRequest {
pub tag_key: Option<TagKey>,
pub update_mask: Option<FieldMask>,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for updating a TagKey.
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_key: Option<TagKey>Required. The new definition of the TagKey. Only the description and
etag fields can be updated by this request. If the etag field is not
empty, it must match the etag field of the existing tag key. Otherwise,
ABORTED will be returned.
update_mask: Option<FieldMask>Fields to be updated. The mask may only contain description or
etag. If omitted entirely, both description and etag are assumed to
be significant.
validate_only: boolSet as true to perform validations necessary for updating the resource, but not actually perform the action.
Implementations§
Source§impl UpdateTagKeyRequest
impl UpdateTagKeyRequest
pub fn new() -> Self
Sourcepub fn set_tag_key<T>(self, v: T) -> Self
pub fn set_tag_key<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_tag_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_tag_key<T>(self, v: Option<T>) -> Self
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateTagKeyRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateTagKeyRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateTagKeyRequest::new().set_or_clear_update_mask(None::<FieldMask>);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.
§Example
ⓘ
let x = UpdateTagKeyRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for UpdateTagKeyRequest
impl Clone for UpdateTagKeyRequest
Source§fn clone(&self) -> UpdateTagKeyRequest
fn clone(&self) -> UpdateTagKeyRequest
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 UpdateTagKeyRequest
impl Debug for UpdateTagKeyRequest
Source§impl Default for UpdateTagKeyRequest
impl Default for UpdateTagKeyRequest
Source§fn default() -> UpdateTagKeyRequest
fn default() -> UpdateTagKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateTagKeyRequest
impl Message for UpdateTagKeyRequest
Source§impl PartialEq for UpdateTagKeyRequest
impl PartialEq for UpdateTagKeyRequest
impl StructuralPartialEq for UpdateTagKeyRequest
Auto Trait Implementations§
impl Freeze for UpdateTagKeyRequest
impl RefUnwindSafe for UpdateTagKeyRequest
impl Send for UpdateTagKeyRequest
impl Sync for UpdateTagKeyRequest
impl Unpin for UpdateTagKeyRequest
impl UnwindSafe for UpdateTagKeyRequest
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