Struct aws_sdk_iottwinmaker::types::PropertyValue
source · #[non_exhaustive]pub struct PropertyValue {
pub timestamp: Option<DateTime>,
pub value: Option<DataValue>,
pub time: Option<String>,
}
Expand description
An object that contains information about a value for a time series 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.timestamp: Option<DateTime>
The timestamp of a value for a time series property.
value: Option<DataValue>
An object that specifies a value for a time series property.
time: Option<String>
ISO8601 DateTime of a value for a time series property.
The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm].
-
[YYYY]: year
-
[MM]: month
-
[DD]: day
-
[hh]: hour
-
[mm]: minute
-
[ss]: seconds
-
[.SSSSSSSSS]: additional precision, where precedence is maintained. For example: [.573123] is equal to 573123000 nanoseconds.
-
Z: default timezone UTC
-
± HH:mm: time zone offset in Hours and Minutes.
Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm]
Implementations§
source§impl PropertyValue
impl PropertyValue
sourcepub fn timestamp(&self) -> Option<&DateTime>
👎Deprecated: This field is deprecated and will throw an error in the future. Use time instead.
pub fn timestamp(&self) -> Option<&DateTime>
The timestamp of a value for a time series property.
sourcepub fn value(&self) -> Option<&DataValue>
pub fn value(&self) -> Option<&DataValue>
An object that specifies a value for a time series property.
sourcepub fn time(&self) -> Option<&str>
pub fn time(&self) -> Option<&str>
ISO8601 DateTime of a value for a time series property.
The time for when the property value was recorded in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.SSSSSSSSS][Z/±HH:mm].
-
[YYYY]: year
-
[MM]: month
-
[DD]: day
-
[hh]: hour
-
[mm]: minute
-
[ss]: seconds
-
[.SSSSSSSSS]: additional precision, where precedence is maintained. For example: [.573123] is equal to 573123000 nanoseconds.
-
Z: default timezone UTC
-
± HH:mm: time zone offset in Hours and Minutes.
Required sub-fields: YYYY-MM-DDThh:mm:ss and [Z/±HH:mm]
source§impl PropertyValue
impl PropertyValue
sourcepub fn builder() -> PropertyValueBuilder
pub fn builder() -> PropertyValueBuilder
Creates a new builder-style object to manufacture PropertyValue
.
Trait Implementations§
source§impl Clone for PropertyValue
impl Clone for PropertyValue
source§fn clone(&self) -> PropertyValue
fn clone(&self) -> PropertyValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PropertyValue
impl Debug for PropertyValue
source§impl PartialEq for PropertyValue
impl PartialEq for PropertyValue
source§fn eq(&self, other: &PropertyValue) -> bool
fn eq(&self, other: &PropertyValue) -> bool
self
and other
values to be equal, and is used
by ==
.