Struct crypto_crawler::Message [−][src]
pub struct Message {
pub exchange: String,
pub market_type: MarketType,
pub msg_type: MessageType,
pub received_at: u64,
pub json: String,
}
Expand description
Message represents messages received by crawlers.
Fields
exchange: String
The exchange name, unique for each exchage
market_type: MarketType
Market type
msg_type: MessageType
Message type
received_at: u64
Unix timestamp in milliseconds
json: String
the original message
Implementations
pub fn new(
exchange: String,
market_type: MarketType,
msg_type: MessageType,
json: String
) -> Self
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more