pub struct CryptoQuote {Show 15 fields
pub symbol: String,
pub name: Option<String>,
pub price: Option<f64>,
pub change: Option<f64>,
pub changes_percentage: Option<f64>,
pub day_low: Option<f64>,
pub day_high: Option<f64>,
pub year_low: Option<f64>,
pub year_high: Option<f64>,
pub market_cap: Option<f64>,
pub volume: Option<f64>,
pub avg_volume: Option<f64>,
pub open: Option<f64>,
pub previous_close: Option<f64>,
pub timestamp: Option<i64>,
}Expand description
Cryptocurrency quote
Fields§
§symbol: StringSymbol
name: Option<String>Name
price: Option<f64>Current price
change: Option<f64>Price change
changes_percentage: Option<f64>Percent change
day_low: Option<f64>Day low
day_high: Option<f64>Day high
year_low: Option<f64>Year low
year_high: Option<f64>Year high
market_cap: Option<f64>Market cap
volume: Option<f64>Volume
avg_volume: Option<f64>Average volume
open: Option<f64>Open price
previous_close: Option<f64>Previous close
timestamp: Option<i64>Timestamp
Trait Implementations§
Source§impl Clone for CryptoQuote
impl Clone for CryptoQuote
Source§fn clone(&self) -> CryptoQuote
fn clone(&self) -> CryptoQuote
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 CryptoQuote
impl Debug for CryptoQuote
Source§impl<'de> Deserialize<'de> for CryptoQuote
impl<'de> Deserialize<'de> for CryptoQuote
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 CryptoQuote
impl RefUnwindSafe for CryptoQuote
impl Send for CryptoQuote
impl Sync for CryptoQuote
impl Unpin for CryptoQuote
impl UnwindSafe for CryptoQuote
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