Struct aws_sdk_iotsitewise::types::Variant
source · #[non_exhaustive]pub struct Variant {
pub string_value: Option<String>,
pub integer_value: Option<i32>,
pub double_value: Option<f64>,
pub boolean_value: Option<bool>,
}Expand description
Contains an asset property value (of a single type 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.string_value: Option<String>Asset property data of type string (sequence of characters).
integer_value: Option<i32>Asset property data of type integer (number that's greater than or equal to zero).
double_value: Option<f64>Asset property data of type double (floating point number).
boolean_value: Option<bool>Asset property data of type Boolean (true or false).
Implementations§
source§impl Variant
impl Variant
sourcepub fn string_value(&self) -> Option<&str>
pub fn string_value(&self) -> Option<&str>
Asset property data of type string (sequence of characters).
sourcepub fn integer_value(&self) -> Option<i32>
pub fn integer_value(&self) -> Option<i32>
Asset property data of type integer (number that's greater than or equal to zero).
sourcepub fn double_value(&self) -> Option<f64>
pub fn double_value(&self) -> Option<f64>
Asset property data of type double (floating point number).
sourcepub fn boolean_value(&self) -> Option<bool>
pub fn boolean_value(&self) -> Option<bool>
Asset property data of type Boolean (true or false).
Trait Implementations§
source§impl PartialEq for Variant
impl PartialEq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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.