[][src]Struct market_finance::Quote

pub struct Quote {
    pub symbol: String,
    pub timestamp: i64,
    pub session: TradingSession,
    pub price: f64,
    pub volume: u64,
}

A symbol's quote at a period in time

Fields

symbol: String

The symbol for the quote

timestamp: i64

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 Clone for Quote[src]

impl Debug for Quote[src]

impl Timestamped for Quote[src]

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

Gets the timestamp in millisecond accuracy

Auto Trait Implementations

impl RefUnwindSafe for Quote

impl Send for Quote

impl Sync for Quote

impl Unpin for Quote

impl UnwindSafe for Quote

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.