#[non_exhaustive]pub struct Book {
pub key: MarketKey,
pub bids: Vec<Level>,
pub asks: Vec<Level>,
pub time: Option<UnixMillis>,
pub extensions: Extensions,
}Expand description
An instrument’s order book at one moment.
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.key: MarketKeyThe instrument’s key.
bids: Vec<Level>Bids, best (highest price) first.
asks: Vec<Level>Asks, best (lowest price) first.
time: Option<UnixMillis>When the venue took it.
extensions: ExtensionsThe venue’s own facts.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Book
Auto Trait Implementations§
impl !RefUnwindSafe for Book
impl !UnwindSafe for Book
impl Freeze for Book
impl Send for Book
impl Sync for Book
impl Unpin for Book
impl UnsafeUnpin for Book
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