pub struct BookTicker {
pub ask_price: String,
pub ask_qty: String,
pub bid_price: String,
pub bid_qty: String,
pub symbol: String,
}
Expand description
BookTicker
JSON schema
{
"type": "object",
"required": [
"askPrice",
"askQty",
"bidPrice",
"bidQty",
"symbol"
],
"properties": {
"askPrice": {
"examples": [
"16.36450000"
],
"type": "string"
},
"askQty": {
"examples": [
"12.56000000"
],
"type": "string"
},
"bidPrice": {
"examples": [
"16.36240000"
],
"type": "string"
},
"bidQty": {
"examples": [
"256.78000000"
],
"type": "string"
},
"symbol": {
"examples": [
"BNBBTC"
],
"type": "string"
}
}
}
Fields§
§ask_price: String
§ask_qty: String
§bid_price: String
§bid_qty: String
§symbol: String
Trait Implementations§
Source§impl Clone for BookTicker
impl Clone for BookTicker
Source§fn clone(&self) -> BookTicker
fn clone(&self) -> BookTicker
Returns a duplicate of the value. Read more
1.0.0 · 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 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
Source§impl From<&BookTicker> for BookTicker
impl From<&BookTicker> for BookTicker
Source§fn from(value: &BookTicker) -> Self
fn from(value: &BookTicker) -> Self
Converts to this type from the input type.
Source§impl From<BookTicker> for TickerOrderBookResponse
impl From<BookTicker> for TickerOrderBookResponse
Source§fn from(value: BookTicker) -> Self
fn from(value: BookTicker) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BookTicker
impl RefUnwindSafe for BookTicker
impl Send for BookTicker
impl Sync for BookTicker
impl Unpin 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