Enum crypto_crawler::MessageType
source · [−]#[repr(C)]
pub enum MessageType {
Show 14 variants
Other,
Trade,
L2Event,
L2Snapshot,
L2TopK,
L3Event,
L3Snapshot,
BBO,
Ticker,
Candlestick,
FundingRate,
OpenInterest,
LongShortRatio,
TakerVolume,
}
Expand description
Crypto message types.
L2Snapshot and L2TopK are very similar, the former is from RESTful API, the latter is from websocket.
Variants
Other
All other messages
Trade
tick-by-tick trade messages
L2Event
Incremental level2 orderbook updates
L2Snapshot
Level2 snapshot from RESTful API
L2TopK
Level2 top K snapshots from websocket
L3Event
Incremental level3 orderbook updates
L3Snapshot
Level3 snapshot from RESTful API
BBO
Best bid and ask
Ticker
24hr rolling window ticker
Candlestick
OHLCV candlestick
FundingRate
Funding rate
OpenInterest
Open interest
LongShortRatio
Long/short ratio
TakerVolume
Taker buy/sell volume
Trait Implementations
sourceimpl Clone for MessageType
impl Clone for MessageType
sourcefn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MessageType
impl Debug for MessageType
sourceimpl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<MessageType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MessageType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for MessageType
impl Display for MessageType
sourceimpl FromStr for MessageType
impl FromStr for MessageType
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> Result<MessageType, <MessageType as FromStr>::Err>
fn from_str(s: &str) -> Result<MessageType, <MessageType as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
sourceimpl PartialEq<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
sourceimpl Serialize for MessageType
impl Serialize for MessageType
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl TryFrom<&str> for MessageType
impl TryFrom<&str> for MessageType
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourcefn try_from(
s: &str
) -> Result<MessageType, <MessageType as TryFrom<&str>>::Error>
fn try_from(
s: &str
) -> Result<MessageType, <MessageType as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for MessageType
impl Eq for MessageType
impl StructuralEq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more