[][src]Struct polyio::Trade

pub struct Trade {
    pub symbol: String,
    pub exchange: u64,
    pub price: Num,
    pub quantity: u64,
    pub conditions: Vec<u64>,
    pub timestamp: SystemTime,
}

A data point for a trade.

Fields

symbol: String

The stock's symbol.

exchange: u64

The exchange the trade occurred on.

price: Num

The price.

quantity: u64

The number of shares traded.

conditions: Vec<u64>

The trade conditions.

timestamp: SystemTime

The trade's timestamp (in UNIX milliseconds).

Trait Implementations

impl Clone for Trade[src]

impl Debug for Trade[src]

impl<'de> Deserialize<'de> for Trade[src]

impl PartialEq<Trade> for Trade[src]

impl Serialize for Trade[src]

impl StructuralPartialEq for Trade[src]

Auto Trait Implementations

impl RefUnwindSafe for Trade

impl Send for Trade

impl Sync for Trade

impl Unpin for Trade

impl UnwindSafe for Trade

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,