Struct google_compute1::GlobalSetLabelsRequest
source · pub struct GlobalSetLabelsRequest {
pub label_fingerprint: Option<String>,
pub labels: Option<HashMap<String, String>>,
}Expand description
There is no detailed description.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- set labels snapshots (request)
- set labels images (request)
Fields§
§label_fingerprint: Option<String>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 when updating or changing labels. Make a get() request to the resource to get the latest fingerprint.
labels: Option<HashMap<String, String>>A list of labels to apply for this resource. Each label key & value must comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For example, “webserver-frontend”: “images”. A label value can also be empty (e.g. “my-label”: “”).
Trait Implementations§
source§impl Clone for GlobalSetLabelsRequest
impl Clone for GlobalSetLabelsRequest
source§fn clone(&self) -> GlobalSetLabelsRequest
fn clone(&self) -> GlobalSetLabelsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GlobalSetLabelsRequest
impl Debug for GlobalSetLabelsRequest
source§impl Default for GlobalSetLabelsRequest
impl Default for GlobalSetLabelsRequest
source§fn default() -> GlobalSetLabelsRequest
fn default() -> GlobalSetLabelsRequest
source§impl<'de> Deserialize<'de> for GlobalSetLabelsRequest
impl<'de> Deserialize<'de> for GlobalSetLabelsRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for GlobalSetLabelsRequest
impl Serialize for GlobalSetLabelsRequest
impl RequestValue for GlobalSetLabelsRequest
Auto Trait Implementations§
impl Freeze for GlobalSetLabelsRequest
impl RefUnwindSafe for GlobalSetLabelsRequest
impl Send for GlobalSetLabelsRequest
impl Sync for GlobalSetLabelsRequest
impl Unpin for GlobalSetLabelsRequest
impl UnwindSafe for GlobalSetLabelsRequest
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more