pub struct Quote {Show 13 fields
pub currency: String,
pub todays_change: FloatOrString,
pub todays_volume: FloatOrString,
pub exchange: String,
pub current_price: FloatOrString,
pub price: FloatOrString,
pub price_change: FloatOrString,
pub update_time: String,
pub symbol: String,
pub high: FloatOrString,
pub low: FloatOrString,
pub open: FloatOrString,
pub timestamp: i64,
}Expand description
Container for single quote data
Fields§
§currency: StringCurrency of quoted stock price
todays_change: FloatOrStringCurrent day’s price change
todays_volume: FloatOrStringCurrent day’s trading volume
exchange: StringExchange’s symbol
current_price: FloatOrStringCurrent price
price: FloatOrStringLast quoted price
price_change: FloatOrStringLast price change
update_time: StringTime of last price update
symbol: StringStock ticker symbol
high: FloatOrStringToday’s highest price
low: FloatOrStringToday’s lowest price
open: FloatOrStringToday’s opening price
timestamp: i64Timestamp
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
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 Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnwindSafe for Quote
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