Struct aws_sdk_iotsitewise::types::TimeInNanos
source · #[non_exhaustive]pub struct TimeInNanos {
pub time_in_seconds: i64,
pub offset_in_nanos: Option<i32>,
}Expand description
Contains a timestamp with optional nanosecond granularity.
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.time_in_seconds: i64The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos.
offset_in_nanos: Option<i32>The nanosecond offset from timeInSeconds.
Implementations§
source§impl TimeInNanos
impl TimeInNanos
sourcepub fn time_in_seconds(&self) -> i64
pub fn time_in_seconds(&self) -> i64
The timestamp date, in seconds, in the Unix epoch format. Fractional nanosecond data is provided by offsetInNanos.
sourcepub fn offset_in_nanos(&self) -> Option<i32>
pub fn offset_in_nanos(&self) -> Option<i32>
The nanosecond offset from timeInSeconds.
source§impl TimeInNanos
impl TimeInNanos
sourcepub fn builder() -> TimeInNanosBuilder
pub fn builder() -> TimeInNanosBuilder
Creates a new builder-style object to manufacture TimeInNanos.
Trait Implementations§
source§impl Clone for TimeInNanos
impl Clone for TimeInNanos
source§fn clone(&self) -> TimeInNanos
fn clone(&self) -> TimeInNanos
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TimeInNanos
impl Debug for TimeInNanos
source§impl PartialEq for TimeInNanos
impl PartialEq for TimeInNanos
source§fn eq(&self, other: &TimeInNanos) -> bool
fn eq(&self, other: &TimeInNanos) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TimeInNanos
Auto Trait Implementations§
impl RefUnwindSafe for TimeInNanos
impl Send for TimeInNanos
impl Sync for TimeInNanos
impl Unpin for TimeInNanos
impl UnwindSafe for TimeInNanos
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.