Struct aws_sdk_iotevents::types::AssetPropertyTimestamp
source · #[non_exhaustive]pub struct AssetPropertyTimestamp {
pub time_in_seconds: String,
pub offset_in_nanos: Option<String>,
}
Expand description
A structure that contains timestamp information. For more information, see TimeInNanos in the AWS IoT SiteWise API Reference.
You must use expressions for all parameters in AssetPropertyTimestamp
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples
-
For literal values, the expressions must contain single quotes. For example, the value for the
timeInSeconds
parameter can be'1586400675'
. -
For references, you must specify either variables or input values. For example, the value for the
offsetInNanos
parameter can be$variable.time
. -
For a substitution template, you must use
${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.In the following example, the value for the
timeInSeconds
parameter uses a substitution template.'${$input.TemperatureInput.sensorData.timestamp / 1000}'
For more information, see Expressions in the AWS IoT Events Developer Guide.
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.time_in_seconds: String
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
offset_in_nanos: Option<String>
The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.
Implementations§
source§impl AssetPropertyTimestamp
impl AssetPropertyTimestamp
sourcepub fn time_in_seconds(&self) -> &str
pub fn time_in_seconds(&self) -> &str
The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
sourcepub fn offset_in_nanos(&self) -> Option<&str>
pub fn offset_in_nanos(&self) -> Option<&str>
The nanosecond offset converted from timeInSeconds
. The valid range is between 0-999999999.
source§impl AssetPropertyTimestamp
impl AssetPropertyTimestamp
sourcepub fn builder() -> AssetPropertyTimestampBuilder
pub fn builder() -> AssetPropertyTimestampBuilder
Creates a new builder-style object to manufacture AssetPropertyTimestamp
.
Trait Implementations§
source§impl Clone for AssetPropertyTimestamp
impl Clone for AssetPropertyTimestamp
source§fn clone(&self) -> AssetPropertyTimestamp
fn clone(&self) -> AssetPropertyTimestamp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssetPropertyTimestamp
impl Debug for AssetPropertyTimestamp
source§impl PartialEq for AssetPropertyTimestamp
impl PartialEq for AssetPropertyTimestamp
source§fn eq(&self, other: &AssetPropertyTimestamp) -> bool
fn eq(&self, other: &AssetPropertyTimestamp) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AssetPropertyTimestamp
Auto Trait Implementations§
impl Freeze for AssetPropertyTimestamp
impl RefUnwindSafe for AssetPropertyTimestamp
impl Send for AssetPropertyTimestamp
impl Sync for AssetPropertyTimestamp
impl Unpin for AssetPropertyTimestamp
impl UnwindSafe for AssetPropertyTimestamp
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> 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