Struct aws_sdk_iottwinmaker::types::DataValue
source · #[non_exhaustive]pub struct DataValue {
pub boolean_value: Option<bool>,
pub double_value: Option<f64>,
pub integer_value: Option<i32>,
pub long_value: Option<i64>,
pub string_value: Option<String>,
pub list_value: Option<Vec<DataValue>>,
pub map_value: Option<HashMap<String, DataValue>>,
pub relationship_value: Option<RelationshipValue>,
pub expression: Option<String>,
}
Expand description
An object that specifies a value for a property.
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.boolean_value: Option<bool>
A Boolean value.
double_value: Option<f64>
A double value.
integer_value: Option<i32>
An integer value.
long_value: Option<i64>
A long value.
string_value: Option<String>
A string value.
list_value: Option<Vec<DataValue>>
A list of multiple values.
map_value: Option<HashMap<String, DataValue>>
An object that maps strings to multiple DataValue
objects.
relationship_value: Option<RelationshipValue>
A value that relates a component to another component.
expression: Option<String>
An expression that produces the value.
Implementations§
source§impl DataValue
impl DataValue
sourcepub fn boolean_value(&self) -> Option<bool>
pub fn boolean_value(&self) -> Option<bool>
A Boolean value.
sourcepub fn double_value(&self) -> Option<f64>
pub fn double_value(&self) -> Option<f64>
A double value.
sourcepub fn integer_value(&self) -> Option<i32>
pub fn integer_value(&self) -> Option<i32>
An integer value.
sourcepub fn long_value(&self) -> Option<i64>
pub fn long_value(&self) -> Option<i64>
A long value.
sourcepub fn string_value(&self) -> Option<&str>
pub fn string_value(&self) -> Option<&str>
A string value.
sourcepub fn list_value(&self) -> &[DataValue]
pub fn list_value(&self) -> &[DataValue]
A list of multiple values.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .list_value.is_none()
.
sourcepub fn map_value(&self) -> Option<&HashMap<String, DataValue>>
pub fn map_value(&self) -> Option<&HashMap<String, DataValue>>
An object that maps strings to multiple DataValue
objects.
sourcepub fn relationship_value(&self) -> Option<&RelationshipValue>
pub fn relationship_value(&self) -> Option<&RelationshipValue>
A value that relates a component to another component.
sourcepub fn expression(&self) -> Option<&str>
pub fn expression(&self) -> Option<&str>
An expression that produces the value.
Trait Implementations§
source§impl PartialEq for DataValue
impl PartialEq for DataValue
impl StructuralPartialEq for DataValue
Auto Trait Implementations§
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
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>
Creates a shared type from an unshared type.