Struct lustre_collector::types::UnsignedLustreTimestamp
source · pub struct UnsignedLustreTimestamp(pub i64);
Expand description
Used to represent an unsigned timestamp in Lustre.
Only use this field when you are sure that the timestamp is unsigned.
Tuple Fields§
§0: i64
Trait Implementations§
source§impl Clone for UnsignedLustreTimestamp
impl Clone for UnsignedLustreTimestamp
source§fn clone(&self) -> UnsignedLustreTimestamp
fn clone(&self) -> UnsignedLustreTimestamp
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 UnsignedLustreTimestamp
impl Debug for UnsignedLustreTimestamp
source§impl<'de> Deserialize<'de> for UnsignedLustreTimestamp
impl<'de> Deserialize<'de> for UnsignedLustreTimestamp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for UnsignedLustreTimestamp
impl Display for UnsignedLustreTimestamp
source§impl From<UnsignedLustreTimestamp> for String
impl From<UnsignedLustreTimestamp> for String
source§fn from(x: UnsignedLustreTimestamp) -> String
fn from(x: UnsignedLustreTimestamp) -> String
Converts to this type from the input type.
source§impl PartialEq for UnsignedLustreTimestamp
impl PartialEq for UnsignedLustreTimestamp
source§fn eq(&self, other: &UnsignedLustreTimestamp) -> bool
fn eq(&self, other: &UnsignedLustreTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for UnsignedLustreTimestamp
impl Serialize for UnsignedLustreTimestamp
source§impl TryFrom<String> for UnsignedLustreTimestamp
impl TryFrom<String> for UnsignedLustreTimestamp
Attempts to convert a string into an UnsignedLustreTimestamp
.
The lustre timestamp can be in two formats:
- An
i64
representing the number of milliseconds since the Unix epoch. - A string in the format “seconds.factional_seconds secs.[u|n]secs”. For example, “1409777887.590578 secs.usecs”.
impl Eq for UnsignedLustreTimestamp
impl StructuralPartialEq for UnsignedLustreTimestamp
Auto Trait Implementations§
impl Freeze for UnsignedLustreTimestamp
impl RefUnwindSafe for UnsignedLustreTimestamp
impl Send for UnsignedLustreTimestamp
impl Sync for UnsignedLustreTimestamp
impl Unpin for UnsignedLustreTimestamp
impl UnwindSafe for UnsignedLustreTimestamp
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.