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
impl Message
[src]
impl Message
[src]pub fn new(
exchange: String,
market_type: MarketType,
msg_type: MessageType,
json: String
) -> Self
[src]
exchange: String,
market_type: MarketType,
msg_type: MessageType,
json: String
) -> Self
Trait Implementations
impl<'de> Deserialize<'de> for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,