[][src]Struct market_finance::Quote

pub struct Quote<'a> {
    pub symbol: &'a str,
    pub timestamp: u64,
    pub session: TradingSession,
    pub price: f64,
    pub volume: u64,
}

A symbol's quote at a period in time

Fields

symbol: &'a str

The symbol for the quote

timestamp: u64

The timestamp of the quote in millisecond accuracy

session: TradingSession

The trading session of the quote - pre market / regular hours / after hours

price: f64

The price of the quote

volume: u64

The volume (daily or transactional) of the symbol

Trait Implementations

impl<'a> Clone for Quote<'a>[src]

impl<'a> Copy for Quote<'a>[src]

impl<'a> Debug for Quote<'a>[src]

impl<'a> Timestamped for Quote<'a>[src]

fn timestamp_millis(&self) -> u64[src]

Gets the timestamp in millisecond accuracy

Auto Trait Implementations

impl<'a> RefUnwindSafe for Quote<'a>

impl<'a> Send for Quote<'a>

impl<'a> Sync for Quote<'a>

impl<'a> Unpin for Quote<'a>

impl<'a> UnwindSafe for Quote<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.