pub struct PriceTicker {
pub price: String,
pub symbol: String,
}
Expand description
PriceTicker
JSON schema
{
"type": "object",
"required": [
"price",
"symbol"
],
"properties": {
"price": {
"examples": [
"0.17160000"
],
"type": "string"
},
"symbol": {
"examples": [
"BNBBTC"
],
"type": "string"
}
}
}
Fields§
§price: String
§symbol: String
Trait Implementations§
Source§impl Clone for PriceTicker
impl Clone for PriceTicker
Source§fn clone(&self) -> PriceTicker
fn clone(&self) -> PriceTicker
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 PriceTicker
impl Debug for PriceTicker
Source§impl<'de> Deserialize<'de> for PriceTicker
impl<'de> Deserialize<'de> for PriceTicker
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<&PriceTicker> for PriceTicker
impl From<&PriceTicker> for PriceTicker
Source§fn from(value: &PriceTicker) -> Self
fn from(value: &PriceTicker) -> Self
Converts to this type from the input type.
Source§impl From<PriceTicker> for TickerPriceResponse
impl From<PriceTicker> for TickerPriceResponse
Source§fn from(value: PriceTicker) -> Self
fn from(value: PriceTicker) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PriceTicker
impl RefUnwindSafe for PriceTicker
impl Send for PriceTicker
impl Sync for PriceTicker
impl Unpin for PriceTicker
impl UnwindSafe for PriceTicker
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