Struct aws_sdk_iottwinmaker::model::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
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
sourceimpl 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 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more