#[non_exhaustive]pub struct UpdateDimensionInput {
pub name: Option<String>,
pub string_values: Option<Vec<String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
string_values: Option<Vec<String>>
Specifies the value or list of values for the dimension. For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
Implementations§
source§impl UpdateDimensionInput
impl UpdateDimensionInput
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
A unique identifier for the dimension. Choose something that describes the type and value to make it easy to remember what it does.
sourcepub fn string_values(&self) -> &[String]
pub fn string_values(&self) -> &[String]
Specifies the value or list of values for the dimension. For TOPIC_FILTER
dimensions, this is a pattern used to match the MQTT topic (for example, "admin/#").
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_values.is_none()
.
source§impl UpdateDimensionInput
impl UpdateDimensionInput
sourcepub fn builder() -> UpdateDimensionInputBuilder
pub fn builder() -> UpdateDimensionInputBuilder
Creates a new builder-style object to manufacture UpdateDimensionInput
.
Trait Implementations§
source§impl Clone for UpdateDimensionInput
impl Clone for UpdateDimensionInput
source§fn clone(&self) -> UpdateDimensionInput
fn clone(&self) -> UpdateDimensionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateDimensionInput
impl Debug for UpdateDimensionInput
source§impl PartialEq for UpdateDimensionInput
impl PartialEq for UpdateDimensionInput
source§fn eq(&self, other: &UpdateDimensionInput) -> bool
fn eq(&self, other: &UpdateDimensionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateDimensionInput
Auto Trait Implementations§
impl Freeze for UpdateDimensionInput
impl RefUnwindSafe for UpdateDimensionInput
impl Send for UpdateDimensionInput
impl Sync for UpdateDimensionInput
impl Unpin for UpdateDimensionInput
impl UnwindSafe for UpdateDimensionInput
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> 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>
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