pub struct OrderBookView {
pub symbol: String,
pub bids: Vec<(Decimal, Decimal)>,
pub asks: Vec<(Decimal, Decimal)>,
pub ts_ms: i64,
pub update_id: i64,
}Expand description
An order book as plain tuples (price, size), best first.
Fields§
§symbol: StringThe symbol.
bids: Vec<(Decimal, Decimal)>Bids, best first.
asks: Vec<(Decimal, Decimal)>Asks, best first.
ts_ms: i64The time the exchange made the data, milliseconds.
update_id: i64The update id.
Trait Implementations§
Source§impl Clone for OrderBookView
impl Clone for OrderBookView
Source§fn clone(&self) -> OrderBookView
fn clone(&self) -> OrderBookView
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 moreAuto Trait Implementations§
impl Freeze for OrderBookView
impl RefUnwindSafe for OrderBookView
impl Send for OrderBookView
impl Sync for OrderBookView
impl Unpin for OrderBookView
impl UnsafeUnpin for OrderBookView
impl UnwindSafe for OrderBookView
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