#[non_exhaustive]pub struct IndexTicker {
pub inst_id: String,
pub idx_px: NumberString,
pub open24h: NumberString,
pub high24h: NumberString,
pub low24h: NumberString,
pub ts: NumberString,
}Expand description
The latest index ticker snapshot.
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.inst_id: StringIndex instrument ID, e.g. BTC-USD.
idx_px: NumberStringIndex price.
open24h: NumberStringOpen price over the last 24 hours.
high24h: NumberStringHighest price over the last 24 hours.
low24h: NumberStringLowest price over the last 24 hours.
ts: NumberStringTimestamp (Unix milliseconds).
Trait Implementations§
Source§impl Clone for IndexTicker
impl Clone for IndexTicker
Source§fn clone(&self) -> IndexTicker
fn clone(&self) -> IndexTicker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexTicker
impl Debug for IndexTicker
Source§impl<'de> Deserialize<'de> for IndexTicker
impl<'de> Deserialize<'de> for IndexTicker
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
Auto Trait Implementations§
impl Freeze for IndexTicker
impl RefUnwindSafe for IndexTicker
impl Send for IndexTicker
impl Sync for IndexTicker
impl Unpin for IndexTicker
impl UnsafeUnpin for IndexTicker
impl UnwindSafe for IndexTicker
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