pub struct BinanceSpotOrderBookL2Update {
pub subscription_id: SubscriptionId,
pub time_exchange: DateTime<Utc>,
pub first_update_id: u64,
pub last_update_id: u64,
pub bids: Vec<BinanceLevel>,
pub asks: Vec<BinanceLevel>,
}Expand description
BinanceSpot OrderBook Level2 deltas WebSocket message.
§Raw Payload Examples
See docs: https://binance-docs.github.io/apidocs/spot/en/#partial-book-depth-streams
{
"e":"depthUpdate",
"E":1671656397761,
"s":"ETHUSDT",
"U":22611425143,
"u":22611425151,
"b":[
["1209.67000000","85.48210000"],
["1209.66000000","20.68790000"]
],
"a":[]
}Fields§
§subscription_id: SubscriptionId§time_exchange: DateTime<Utc>§first_update_id: u64§last_update_id: u64§bids: Vec<BinanceLevel>§asks: Vec<BinanceLevel>Trait Implementations§
Source§impl Clone for BinanceSpotOrderBookL2Update
impl Clone for BinanceSpotOrderBookL2Update
Source§fn clone(&self) -> BinanceSpotOrderBookL2Update
fn clone(&self) -> BinanceSpotOrderBookL2Update
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 BinanceSpotOrderBookL2Update
impl Debug for BinanceSpotOrderBookL2Update
Source§impl<'de> Deserialize<'de> for BinanceSpotOrderBookL2Update
impl<'de> Deserialize<'de> for BinanceSpotOrderBookL2Update
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 Identifier<Option<SubscriptionId>> for BinanceSpotOrderBookL2Update
impl Identifier<Option<SubscriptionId>> for BinanceSpotOrderBookL2Update
fn id(&self) -> Option<SubscriptionId>
Source§impl PartialEq for BinanceSpotOrderBookL2Update
impl PartialEq for BinanceSpotOrderBookL2Update
Source§fn eq(&self, other: &BinanceSpotOrderBookL2Update) -> bool
fn eq(&self, other: &BinanceSpotOrderBookL2Update) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BinanceSpotOrderBookL2Update
impl PartialOrd for BinanceSpotOrderBookL2Update
impl StructuralPartialEq for BinanceSpotOrderBookL2Update
Auto Trait Implementations§
impl Freeze for BinanceSpotOrderBookL2Update
impl RefUnwindSafe for BinanceSpotOrderBookL2Update
impl Send for BinanceSpotOrderBookL2Update
impl Sync for BinanceSpotOrderBookL2Update
impl Unpin for BinanceSpotOrderBookL2Update
impl UnsafeUnpin for BinanceSpotOrderBookL2Update
impl UnwindSafe for BinanceSpotOrderBookL2Update
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more