#[non_exhaustive]pub struct ZoneSetLabelsRequest {
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
/* private fields */
}Available on crate features
disks or instant-snapshots only.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.label_fingerprint: Option<Bytes>The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
labels: HashMap<String, String>The labels to set for this resource.
Implementations§
Source§impl ZoneSetLabelsRequest
impl ZoneSetLabelsRequest
pub fn new() -> Self
Sourcepub fn set_label_fingerprint<T>(self, v: T) -> Self
pub fn set_label_fingerprint<T>(self, v: T) -> Self
Sets the value of label_fingerprint.
§Example
ⓘ
let x = ZoneSetLabelsRequest::new().set_label_fingerprint(bytes::Bytes::from_static(b"example"));Sourcepub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_label_fingerprint<T>(self, v: Option<T>) -> Self
Sets or clears the value of label_fingerprint.
§Example
ⓘ
let x = ZoneSetLabelsRequest::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = ZoneSetLabelsRequest::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Trait Implementations§
Source§impl Clone for ZoneSetLabelsRequest
impl Clone for ZoneSetLabelsRequest
Source§fn clone(&self) -> ZoneSetLabelsRequest
fn clone(&self) -> ZoneSetLabelsRequest
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 ZoneSetLabelsRequest
impl Debug for ZoneSetLabelsRequest
Source§impl Default for ZoneSetLabelsRequest
impl Default for ZoneSetLabelsRequest
Source§fn default() -> ZoneSetLabelsRequest
fn default() -> ZoneSetLabelsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ZoneSetLabelsRequest
impl Message for ZoneSetLabelsRequest
Source§impl PartialEq for ZoneSetLabelsRequest
impl PartialEq for ZoneSetLabelsRequest
impl StructuralPartialEq for ZoneSetLabelsRequest
Auto Trait Implementations§
impl !Freeze for ZoneSetLabelsRequest
impl RefUnwindSafe for ZoneSetLabelsRequest
impl Send for ZoneSetLabelsRequest
impl Sync for ZoneSetLabelsRequest
impl Unpin for ZoneSetLabelsRequest
impl UnwindSafe for ZoneSetLabelsRequest
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