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
impl StructuralPartialEq for PropertyValue
Auto Trait Implementations§
impl Freeze for PropertyValue
impl RefUnwindSafe for PropertyValue
impl Send for PropertyValue
impl Sync for PropertyValue
impl Unpin for PropertyValue
impl UnwindSafe for PropertyValue
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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