pub struct TimestampMs(/* private fields */);Expand description
Domain value type representing a timestamp in milliseconds.
Implementations§
Source§impl TimestampMs
impl TimestampMs
Sourcepub fn try_new(value: u64) -> Result<Self, PriceLevelError>
pub fn try_new(value: u64) -> Result<Self, PriceLevelError>
Creates a validated timestamp from milliseconds.
Trait Implementations§
Source§impl Clone for TimestampMs
impl Clone for TimestampMs
Source§fn clone(&self) -> TimestampMs
fn clone(&self) -> TimestampMs
Returns a duplicate 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 TimestampMs
impl Debug for TimestampMs
Source§impl Default for TimestampMs
impl Default for TimestampMs
Source§fn default() -> TimestampMs
fn default() -> TimestampMs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimestampMs
impl<'de> Deserialize<'de> for TimestampMs
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 TimestampMs
impl Display for TimestampMs
Source§impl FromStr for TimestampMs
impl FromStr for TimestampMs
Source§impl Hash for TimestampMs
impl Hash for TimestampMs
Source§impl Ord for TimestampMs
impl Ord for TimestampMs
Source§fn cmp(&self, other: &TimestampMs) -> Ordering
fn cmp(&self, other: &TimestampMs) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimestampMs
impl PartialEq for TimestampMs
Source§impl PartialOrd for TimestampMs
impl PartialOrd for TimestampMs
Source§impl Serialize for TimestampMs
impl Serialize for TimestampMs
impl Copy for TimestampMs
impl Eq for TimestampMs
impl StructuralPartialEq for TimestampMs
Auto Trait Implementations§
impl Freeze for TimestampMs
impl RefUnwindSafe for TimestampMs
impl Send for TimestampMs
impl Sync for TimestampMs
impl Unpin for TimestampMs
impl UnsafeUnpin for TimestampMs
impl UnwindSafe for TimestampMs
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