#[non_exhaustive]pub struct SetLabelsRequest {
pub project: String,
pub resource: String,
pub body: Option<GlobalSetLabelsRequest>,
/* private fields */
}Available on crate feature
images only.Expand description
Synthetic request message for the setLabels() method.
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.project: StringProject ID for this request.
resource: StringName or id of the resource for this request.
body: Option<GlobalSetLabelsRequest>Synthetic request body field for the setLabels() method.
Implementations§
Source§impl SetLabelsRequest
impl SetLabelsRequest
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<GlobalSetLabelsRequest>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<GlobalSetLabelsRequest>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlobalSetLabelsRequest>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<GlobalSetLabelsRequest>,
Trait Implementations§
Source§impl Clone for SetLabelsRequest
impl Clone for SetLabelsRequest
Source§fn clone(&self) -> SetLabelsRequest
fn clone(&self) -> SetLabelsRequest
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 SetLabelsRequest
impl Debug for SetLabelsRequest
Source§impl Default for SetLabelsRequest
impl Default for SetLabelsRequest
Source§fn default() -> SetLabelsRequest
fn default() -> SetLabelsRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SetLabelsRequest
impl PartialEq for SetLabelsRequest
impl StructuralPartialEq for SetLabelsRequest
Auto Trait Implementations§
impl !Freeze for SetLabelsRequest
impl RefUnwindSafe for SetLabelsRequest
impl Send for SetLabelsRequest
impl Sync for SetLabelsRequest
impl Unpin for SetLabelsRequest
impl UnwindSafe for SetLabelsRequest
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