Struct barter_data::transformer::book::InstrumentOrderBook
source · pub struct InstrumentOrderBook<Updater> {
pub instrument: Instrument,
pub updater: Updater,
pub book: OrderBook,
}Expand description
OrderBook for an Instrument with an exchange specific OrderBookUpdater to define
how to update it.
Fields§
§instrument: Instrument§updater: Updater§book: OrderBookTrait Implementations§
source§impl<Updater: Clone> Clone for InstrumentOrderBook<Updater>
impl<Updater: Clone> Clone for InstrumentOrderBook<Updater>
source§fn clone(&self) -> InstrumentOrderBook<Updater>
fn clone(&self) -> InstrumentOrderBook<Updater>
Returns a copy 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<Updater: Debug> Debug for InstrumentOrderBook<Updater>
impl<Updater: Debug> Debug for InstrumentOrderBook<Updater>
source§impl<'de, Updater> Deserialize<'de> for InstrumentOrderBook<Updater>where
Updater: Deserialize<'de>,
impl<'de, Updater> Deserialize<'de> for InstrumentOrderBook<Updater>where
Updater: Deserialize<'de>,
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
source§impl<Updater: PartialEq> PartialEq<InstrumentOrderBook<Updater>> for InstrumentOrderBook<Updater>
impl<Updater: PartialEq> PartialEq<InstrumentOrderBook<Updater>> for InstrumentOrderBook<Updater>
source§fn eq(&self, other: &InstrumentOrderBook<Updater>) -> bool
fn eq(&self, other: &InstrumentOrderBook<Updater>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<Updater: PartialOrd> PartialOrd<InstrumentOrderBook<Updater>> for InstrumentOrderBook<Updater>
impl<Updater: PartialOrd> PartialOrd<InstrumentOrderBook<Updater>> for InstrumentOrderBook<Updater>
source§fn partial_cmp(&self, other: &InstrumentOrderBook<Updater>) -> Option<Ordering>
fn partial_cmp(&self, other: &InstrumentOrderBook<Updater>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more