#[non_exhaustive]pub struct InstancesSetLabelsRequest {
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
/* private fields */
}Available on crate feature
instances 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>Fingerprint of the previous set of labels for this resource, used to prevent conflicts. Provide the latest fingerprint value when making a request to add or change labels.
labels: HashMap<String, String>Implementations§
Source§impl InstancesSetLabelsRequest
impl InstancesSetLabelsRequest
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 = InstancesSetLabelsRequest::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 = InstancesSetLabelsRequest::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = InstancesSetLabelsRequest::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Trait Implementations§
Source§impl Clone for InstancesSetLabelsRequest
impl Clone for InstancesSetLabelsRequest
Source§fn clone(&self) -> InstancesSetLabelsRequest
fn clone(&self) -> InstancesSetLabelsRequest
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 InstancesSetLabelsRequest
impl Debug for InstancesSetLabelsRequest
Source§impl Default for InstancesSetLabelsRequest
impl Default for InstancesSetLabelsRequest
Source§fn default() -> InstancesSetLabelsRequest
fn default() -> InstancesSetLabelsRequest
Returns the “default value” for a type. Read more
Source§impl Message for InstancesSetLabelsRequest
impl Message for InstancesSetLabelsRequest
impl StructuralPartialEq for InstancesSetLabelsRequest
Auto Trait Implementations§
impl !Freeze for InstancesSetLabelsRequest
impl RefUnwindSafe for InstancesSetLabelsRequest
impl Send for InstancesSetLabelsRequest
impl Sync for InstancesSetLabelsRequest
impl Unpin for InstancesSetLabelsRequest
impl UnwindSafe for InstancesSetLabelsRequest
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