pub enum DataKind {
Trade(PublicTrade),
OrderBookL1(OrderBookL1),
OrderBook(OrderBookEvent),
Candle(Candle),
Liquidation(Liquidation),
}Expand description
Available kinds of normalised Barter MarketEvent<T>.
§Notes
Selfis only used as theMarketEvent<DataKind>Outputwhen combining severalStreams<SubscriptionKind::Event>using theMultiStreamBuilder<Output>, or via theDynamicStreams::select_allmethod.Selfis purposefully not supported in anySubscriptions directly, it is only used to make ergonomicStreamscontaining manyMarketEvent<T>kinds.
Variants§
Trade(PublicTrade)
OrderBookL1(OrderBookL1)
OrderBook(OrderBookEvent)
Candle(Candle)
Liquidation(Liquidation)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataKind
impl<'de> Deserialize<'de> for DataKind
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 From<Liquidation> for DataKind
impl From<Liquidation> for DataKind
Source§fn from(value: Liquidation) -> Self
fn from(value: Liquidation) -> Self
Converts to this type from the input type.
Source§impl From<OrderBookEvent> for DataKind
impl From<OrderBookEvent> for DataKind
Source§fn from(value: OrderBookEvent) -> Self
fn from(value: OrderBookEvent) -> Self
Converts to this type from the input type.
Source§impl From<OrderBookL1> for DataKind
impl From<OrderBookL1> for DataKind
Source§fn from(value: OrderBookL1) -> Self
fn from(value: OrderBookL1) -> Self
Converts to this type from the input type.
Source§impl From<PublicTrade> for DataKind
impl From<PublicTrade> for DataKind
Source§fn from(value: PublicTrade) -> Self
fn from(value: PublicTrade) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DataKind
Auto Trait Implementations§
impl Freeze for DataKind
impl RefUnwindSafe for DataKind
impl Send for DataKind
impl Sync for DataKind
impl Unpin for DataKind
impl UnwindSafe for DataKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more