Struct aws_sdk_eks::types::UpdateLabelsPayload
source · #[non_exhaustive]pub struct UpdateLabelsPayload {
pub add_or_update_labels: Option<HashMap<String, String>>,
pub remove_labels: Option<Vec<String>>,
}
Expand description
An object representing a Kubernetes label
change for a managed node group.
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.add_or_update_labels: Option<HashMap<String, String>>
The Kubernetes labels
to add or update.
remove_labels: Option<Vec<String>>
The Kubernetes labels
to remove.
Implementations§
source§impl UpdateLabelsPayload
impl UpdateLabelsPayload
sourcepub fn add_or_update_labels(&self) -> Option<&HashMap<String, String>>
pub fn add_or_update_labels(&self) -> Option<&HashMap<String, String>>
The Kubernetes labels
to add or update.
sourcepub fn remove_labels(&self) -> &[String]
pub fn remove_labels(&self) -> &[String]
The Kubernetes labels
to remove.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .remove_labels.is_none()
.
source§impl UpdateLabelsPayload
impl UpdateLabelsPayload
sourcepub fn builder() -> UpdateLabelsPayloadBuilder
pub fn builder() -> UpdateLabelsPayloadBuilder
Creates a new builder-style object to manufacture UpdateLabelsPayload
.
Trait Implementations§
source§impl Clone for UpdateLabelsPayload
impl Clone for UpdateLabelsPayload
source§fn clone(&self) -> UpdateLabelsPayload
fn clone(&self) -> UpdateLabelsPayload
Returns a copy 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 UpdateLabelsPayload
impl Debug for UpdateLabelsPayload
source§impl PartialEq for UpdateLabelsPayload
impl PartialEq for UpdateLabelsPayload
source§fn eq(&self, other: &UpdateLabelsPayload) -> bool
fn eq(&self, other: &UpdateLabelsPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateLabelsPayload
Auto Trait Implementations§
impl Freeze for UpdateLabelsPayload
impl RefUnwindSafe for UpdateLabelsPayload
impl Send for UpdateLabelsPayload
impl Sync for UpdateLabelsPayload
impl Unpin for UpdateLabelsPayload
impl UnwindSafe for UpdateLabelsPayload
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.