Enum barter_data::model::DataKind
source · [−]pub enum DataKind {
Trade(PublicTrade),
Candle(Candle),
OrderBook(OrderBook),
}Expand description
Defines the type of Barter MarketEvent.
Variants
Trade(PublicTrade)
Candle(Candle)
OrderBook(OrderBook)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for DataKind
impl<'de> Deserialize<'de> for DataKind
sourcefn 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
sourceimpl PartialOrd<DataKind> for DataKind
impl PartialOrd<DataKind> for DataKind
sourcefn partial_cmp(&self, other: &DataKind) -> Option<Ordering>
fn partial_cmp(&self, other: &DataKind) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl StructuralPartialEq for DataKind
Auto Trait Implementations
impl RefUnwindSafe for DataKind
impl Send for DataKind
impl Sync for DataKind
impl Unpin for DataKind
impl UnwindSafe for DataKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more