#[non_exhaustive]pub struct RegionSetLabelsRequest {
pub label_fingerprint: Option<Bytes>,
pub labels: HashMap<String, String>,
/* private fields */
}Available on crate features
addresses or forwarding-rules or interconnect-attachments or region-disks or region-instant-snapshots or region-security-policies or target-vpn-gateways or vpn-gateways or vpn-tunnels 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 RegionSetLabelsRequest
impl RegionSetLabelsRequest
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 = RegionSetLabelsRequest::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 = RegionSetLabelsRequest::new().set_or_clear_label_fingerprint(Some(bytes::Bytes::from_static(b"example")));
let x = RegionSetLabelsRequest::new().set_or_clear_label_fingerprint(None::<bytes::Bytes>);Trait Implementations§
Source§impl Clone for RegionSetLabelsRequest
impl Clone for RegionSetLabelsRequest
Source§fn clone(&self) -> RegionSetLabelsRequest
fn clone(&self) -> RegionSetLabelsRequest
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 RegionSetLabelsRequest
impl Debug for RegionSetLabelsRequest
Source§impl Default for RegionSetLabelsRequest
impl Default for RegionSetLabelsRequest
Source§fn default() -> RegionSetLabelsRequest
fn default() -> RegionSetLabelsRequest
Returns the “default value” for a type. Read more
Source§impl Message for RegionSetLabelsRequest
impl Message for RegionSetLabelsRequest
Source§impl PartialEq for RegionSetLabelsRequest
impl PartialEq for RegionSetLabelsRequest
impl StructuralPartialEq for RegionSetLabelsRequest
Auto Trait Implementations§
impl !Freeze for RegionSetLabelsRequest
impl RefUnwindSafe for RegionSetLabelsRequest
impl Send for RegionSetLabelsRequest
impl Sync for RegionSetLabelsRequest
impl Unpin for RegionSetLabelsRequest
impl UnwindSafe for RegionSetLabelsRequest
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