pub struct PriceChange {
pub price_24h_ago: Option<String>,
pub price_change_24h: Option<String>,
pub price_change_percent_24h: Option<String>,
}Expand description
PriceChange
JSON schema
{
"type": "object",
"properties": {
"price_24h_ago": {
"description": "Price 24 hours ago",
"examples": [
"34500.00"
],
"type": [
"string",
"null"
]
},
"price_change_24h": {
"description": "Absolute price change in last 24 hours",
"examples": [
"500.00"
],
"type": [
"string",
"null"
]
},
"price_change_percent_24h": {
"description": "Percentage price change in last 24 hours",
"examples": [
"1.45"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§price_24h_ago: Option<String>Price 24 hours ago
price_change_24h: Option<String>Absolute price change in last 24 hours
price_change_percent_24h: Option<String>Percentage price change in last 24 hours
Trait Implementations§
Source§impl Clone for PriceChange
impl Clone for PriceChange
Source§fn clone(&self) -> PriceChange
fn clone(&self) -> PriceChange
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 PriceChange
impl Debug for PriceChange
Source§impl Default for PriceChange
impl Default for PriceChange
Source§impl<'de> Deserialize<'de> for PriceChange
impl<'de> Deserialize<'de> for PriceChange
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 PriceChange
impl RefUnwindSafe for PriceChange
impl Send for PriceChange
impl Sync for PriceChange
impl Unpin for PriceChange
impl UnsafeUnpin for PriceChange
impl UnwindSafe for PriceChange
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