pub struct BinanceOrderbookUpdate {
pub last_update_id: u64,
pub first_update_id: u64,
pub final_update_id: u64,
pub bids: SmallVec<[(String, String); 32]>,
pub asks: SmallVec<[(String, String); 32]>,
pub event_time: Option<u64>,
}Expand description
Binance orderbook update structure Optimized for minimal allocations with SmallVec
Fields§
§last_update_id: u64Last update ID
first_update_id: u64First update ID in event
final_update_id: u64Final update ID in event
bids: SmallVec<[(String, String); 32]>Bid updates (price, quantity)
asks: SmallVec<[(String, String); 32]>Ask updates (price, quantity)
event_time: Option<u64>Event timestamp
Trait Implementations§
Source§impl Clone for BinanceOrderbookUpdate
impl Clone for BinanceOrderbookUpdate
Source§fn clone(&self) -> BinanceOrderbookUpdate
fn clone(&self) -> BinanceOrderbookUpdate
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 BinanceOrderbookUpdate
impl Debug for BinanceOrderbookUpdate
Source§impl<'de> Deserialize<'de> for BinanceOrderbookUpdate
impl<'de> Deserialize<'de> for BinanceOrderbookUpdate
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 BinanceOrderbookUpdate
impl RefUnwindSafe for BinanceOrderbookUpdate
impl Send for BinanceOrderbookUpdate
impl Sync for BinanceOrderbookUpdate
impl Unpin for BinanceOrderbookUpdate
impl UnwindSafe for BinanceOrderbookUpdate
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