#[non_exhaustive]pub struct BulkSetLabelsRequest {
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
/* private fields */
}Available on crate feature
disks 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 may optionally 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 BulkSetLabelsRequest
impl BulkSetLabelsRequest
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 = BulkSetLabelsRequest::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 = BulkSetLabelsRequest::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = BulkSetLabelsRequest::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Trait Implementations§
Source§impl Clone for BulkSetLabelsRequest
impl Clone for BulkSetLabelsRequest
Source§fn clone(&self) -> BulkSetLabelsRequest
fn clone(&self) -> BulkSetLabelsRequest
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 BulkSetLabelsRequest
impl Debug for BulkSetLabelsRequest
Source§impl Default for BulkSetLabelsRequest
impl Default for BulkSetLabelsRequest
Source§fn default() -> BulkSetLabelsRequest
fn default() -> BulkSetLabelsRequest
Returns the “default value” for a type. Read more
Source§impl Message for BulkSetLabelsRequest
impl Message for BulkSetLabelsRequest
Source§impl PartialEq for BulkSetLabelsRequest
impl PartialEq for BulkSetLabelsRequest
impl StructuralPartialEq for BulkSetLabelsRequest
Auto Trait Implementations§
impl !Freeze for BulkSetLabelsRequest
impl RefUnwindSafe for BulkSetLabelsRequest
impl Send for BulkSetLabelsRequest
impl Sync for BulkSetLabelsRequest
impl Unpin for BulkSetLabelsRequest
impl UnwindSafe for BulkSetLabelsRequest
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