pub struct ForexQuote {
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 open: Option<f64>,
pub previous_close: Option<f64>,
pub timestamp: Option<i64>,
}Expand description
Forex quote
Fields§
§symbol: StringSymbol
name: Option<String>Name
price: Option<f64>Current price/rate
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
open: Option<f64>Open price
previous_close: Option<f64>Previous close
timestamp: Option<i64>Timestamp
Trait Implementations§
Source§impl Clone for ForexQuote
impl Clone for ForexQuote
Source§fn clone(&self) -> ForexQuote
fn clone(&self) -> ForexQuote
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 ForexQuote
impl Debug for ForexQuote
Source§impl<'de> Deserialize<'de> for ForexQuote
impl<'de> Deserialize<'de> for ForexQuote
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 ForexQuote
impl RefUnwindSafe for ForexQuote
impl Send for ForexQuote
impl Sync for ForexQuote
impl Unpin for ForexQuote
impl UnwindSafe for ForexQuote
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