[][src]Struct cxmr_feeds::Events

pub struct Events {
    pub market: Market,
    pub events: Vec<Event>,
    pub timestamp: Option<u64>,
}

Market feed events on particular exchange and currency pair.

Fields

market: Market

Market ID.

events: Vec<Event>

Vector of public events.

timestamp: Option<u64>

Timestamp of market event.

Methods

impl Events[src]

pub fn exchange(&self) -> Exchange[src]

Returns market exchange.

pub fn currency_pair(&self) -> CurrencyPair[src]

Returns market currency pair.

Trait Implementations

impl Clone for Events[src]

impl Debug for Events[src]

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

impl From<(Market, u64, Vec<EventData>)> for Events[src]

impl Into<Vec<EventData>> for Events[src]

impl Serialize for Events[src]

Auto Trait Implementations

impl RefUnwindSafe for Events

impl Send for Events

impl Sync for Events

impl Unpin for Events

impl UnwindSafe for Events

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: Deserialize<'de>, 
[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.