#[non_exhaustive]pub struct BookTicker {
pub symbol: String,
pub bid_price: Decimal,
pub bid_qty: Decimal,
pub ask_price: Decimal,
pub ask_qty: Decimal,
}Expand description
GET /api/v3/ticker/bookTicker: the best bid and ask. It carries no
time.
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.symbol: StringThe pair.
bid_price: DecimalBest bid price.
bid_qty: DecimalQuantity at the best bid.
ask_price: DecimalBest ask price.
ask_qty: DecimalQuantity at the best ask.
Trait Implementations§
Source§impl Clone for BookTicker
impl Clone for BookTicker
Source§impl Debug for BookTicker
impl Debug for BookTicker
Source§impl<'de> Deserialize<'de> for BookTicker
impl<'de> Deserialize<'de> for BookTicker
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
impl Eq for BookTicker
Source§impl PartialEq for BookTicker
impl PartialEq for BookTicker
Source§impl Serialize for BookTicker
impl Serialize for BookTicker
impl StructuralPartialEq for BookTicker
Auto Trait Implementations§
impl Freeze for BookTicker
impl RefUnwindSafe for BookTicker
impl Send for BookTicker
impl Sync for BookTicker
impl Unpin for BookTicker
impl UnsafeUnpin for BookTicker
impl UnwindSafe for BookTicker
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