pub struct BookTickerEvent {
pub event_type: String,
pub update_id: u64,
pub event_time: u64,
pub transaction_time: u64,
pub symbol: String,
pub best_bid_price: String,
pub best_bid_qty: String,
pub best_ask_price: String,
pub best_ask_qty: String,
}Expand description
Best-bid/ask book ticker event — dispatched when "e": "bookTicker".
V3 doc format includes e, E, T fields. Older/Binance-compatible
deployments may emit the message without e — in that case it is still
detected by "u" key presence without "e" and event_type/event_time/
transaction_time fall back to their defaults.
Fields§
§event_type: String"bookTicker" on V3; empty on legacy no-"e" deployments.
update_id: u64§event_time: u64Event time — present in V3; 0 on legacy deployments that omit it.
transaction_time: u64Transaction time — present in V3; 0 on legacy deployments that omit it.
symbol: String§best_bid_price: String§best_bid_qty: String§best_ask_price: String§best_ask_qty: StringTrait Implementations§
Source§impl Debug for BookTickerEvent
impl Debug for BookTickerEvent
Source§impl<'de> Deserialize<'de> for BookTickerEvent
impl<'de> Deserialize<'de> for BookTickerEvent
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 BookTickerEvent
impl RefUnwindSafe for BookTickerEvent
impl Send for BookTickerEvent
impl Sync for BookTickerEvent
impl Unpin for BookTickerEvent
impl UnsafeUnpin for BookTickerEvent
impl UnwindSafe for BookTickerEvent
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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