pub struct OrderbookSnapshot {
pub last_update_id: u64,
pub bids: SmallVec<[SmallVec<[String; 2]>; 32]>,
pub asks: SmallVec<[SmallVec<[String; 2]>; 32]>,
}Expand description
Orderbook snapshot message from Binance Spot REST API
Fields§
§last_update_id: u64Last update ID
bids: SmallVec<[SmallVec<[String; 2]>; 32]>Bid price and quantity pairs
asks: SmallVec<[SmallVec<[String; 2]>; 32]>Ask price and quantity pairs
Trait Implementations§
Source§impl Clone for OrderbookSnapshot
impl Clone for OrderbookSnapshot
Source§fn clone(&self) -> OrderbookSnapshot
fn clone(&self) -> OrderbookSnapshot
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 OrderbookSnapshot
impl Debug for OrderbookSnapshot
Source§impl<'de> Deserialize<'de> for OrderbookSnapshot
impl<'de> Deserialize<'de> for OrderbookSnapshot
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 From<OrderbookSnapshot> for ParsedOrderbookSnapshot
impl From<OrderbookSnapshot> for ParsedOrderbookSnapshot
Source§fn from(snapshot: OrderbookSnapshot) -> Self
fn from(snapshot: OrderbookSnapshot) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OrderbookSnapshot
impl RefUnwindSafe for OrderbookSnapshot
impl Send for OrderbookSnapshot
impl Sync for OrderbookSnapshot
impl Unpin for OrderbookSnapshot
impl UnwindSafe for OrderbookSnapshot
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