Struct barter_data::event::MarketIter
source · pub struct MarketIter<T>(pub Vec<Result<MarketEvent<T>, DataError>>);Expand description
Convenient new type containing a collection of MarketEvent<T>s.
Tuple Fields§
§0: Vec<Result<MarketEvent<T>, DataError>>Trait Implementations§
source§impl<T: Debug> Debug for MarketIter<T>
impl<T: Debug> Debug for MarketIter<T>
source§impl From<(ExchangeId, Instrument, BinanceLiquidation)> for MarketIter<Liquidation>
impl From<(ExchangeId, Instrument, BinanceLiquidation)> for MarketIter<Liquidation>
source§fn from(
(exchange_id, instrument, liquidation): (ExchangeId, Instrument, BinanceLiquidation)
) -> Self
fn from( (exchange_id, instrument, liquidation): (ExchangeId, Instrument, BinanceLiquidation) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BinanceOrderBookL1)> for MarketIter<OrderBookL1>
impl From<(ExchangeId, Instrument, BinanceOrderBookL1)> for MarketIter<OrderBookL1>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, BinanceOrderBookL1)
) -> Self
fn from( (exchange_id, instrument, book): (ExchangeId, Instrument, BinanceOrderBookL1) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BinanceTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BinanceTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BinanceTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, BinanceTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitfinexMessage)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitfinexMessage)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, message): (ExchangeId, Instrument, BitfinexMessage)
) -> Self
fn from( (exchange_id, instrument, message): (ExchangeId, Instrument, BitfinexMessage) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BitfinexTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BitfinexTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, BitfinexTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, BitfinexTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, BybitMessage<Vec<BybitTrade, Global>>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, BybitMessage<Vec<BybitTrade, Global>>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, BybitTradePayload)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, BybitTradePayload) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, CoinbaseTrade)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, CoinbaseTrade)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, CoinbaseTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, CoinbaseTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, GateioMessage<GateioSpotTradeInner>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, GateioMessage<GateioSpotTradeInner>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trade): (ExchangeId, Instrument, GateioSpotTrade)
) -> Self
fn from( (exchange_id, instrument, trade): (ExchangeId, Instrument, GateioSpotTrade) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, GateioMessage<Vec<GateioFuturesTradeInner, Global>>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, GateioMessage<Vec<GateioFuturesTradeInner, Global>>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, GateioFuturesTrades)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, GateioFuturesTrades) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, KrakenMessage<KrakenOrderBookL1Inner>)> for MarketIter<OrderBookL1>
impl From<(ExchangeId, Instrument, KrakenMessage<KrakenOrderBookL1Inner>)> for MarketIter<OrderBookL1>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, KrakenOrderBookL1)
) -> Self
fn from( (exchange_id, instrument, book): (ExchangeId, Instrument, KrakenOrderBookL1) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, KrakenMessage<KrakenTradesInner>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, KrakenMessage<KrakenTradesInner>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, KrakenTrades)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, KrakenTrades) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, OkxMessage<OkxTrade>)> for MarketIter<PublicTrade>
impl From<(ExchangeId, Instrument, OkxMessage<OkxTrade>)> for MarketIter<PublicTrade>
source§fn from(
(exchange_id, instrument, trades): (ExchangeId, Instrument, OkxTrades)
) -> Self
fn from( (exchange_id, instrument, trades): (ExchangeId, Instrument, OkxTrades) ) -> Self
Converts to this type from the input type.
source§impl From<(ExchangeId, Instrument, OrderBook)> for MarketIter<OrderBook>
impl From<(ExchangeId, Instrument, OrderBook)> for MarketIter<OrderBook>
source§fn from(
(exchange_id, instrument, book): (ExchangeId, Instrument, OrderBook)
) -> Self
fn from( (exchange_id, instrument, book): (ExchangeId, Instrument, OrderBook) ) -> Self
Converts to this type from the input type.
source§impl<T> FromIterator<Result<MarketEvent<T>, DataError>> for MarketIter<T>
impl<T> FromIterator<Result<MarketEvent<T>, DataError>> for MarketIter<T>
source§fn from_iter<Iter>(iter: Iter) -> Selfwhere
Iter: IntoIterator<Item = Result<MarketEvent<T>, DataError>>,
fn from_iter<Iter>(iter: Iter) -> Selfwhere Iter: IntoIterator<Item = Result<MarketEvent<T>, DataError>>,
Creates a value from an iterator. Read more