pub enum TimestampFormat {
Milliseconds,
Seconds,
Microseconds,
Nanoseconds,
Iso8601,
TimeSmartstring,
}Expand description
Timestamp format used by different exchanges
Variants§
Milliseconds
Milliseconds since epoch (e.g. 1577836800000)
Seconds
Seconds since epoch (e.g. 1577836800)
Microseconds
Microseconds since epoch (e.g. 1577836800000000)
Nanoseconds
Nanoseconds since epoch (e.g. 1577836800000000000)
Iso8601
ISO8601 format (e.g. “2020-01-01T00:00:00Z”)
TimeSmartstring
String format like HH:MM:SS
Trait Implementations§
Source§impl Clone for TimestampFormat
impl Clone for TimestampFormat
Source§fn clone(&self) -> TimestampFormat
fn clone(&self) -> TimestampFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimestampFormat
impl Debug for TimestampFormat
Source§impl PartialEq for TimestampFormat
impl PartialEq for TimestampFormat
impl Copy for TimestampFormat
impl Eq for TimestampFormat
impl StructuralPartialEq for TimestampFormat
Auto Trait Implementations§
impl Freeze for TimestampFormat
impl RefUnwindSafe for TimestampFormat
impl Send for TimestampFormat
impl Sync for TimestampFormat
impl Unpin for TimestampFormat
impl UnwindSafe for TimestampFormat
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more