Struct crypto_crawler::Message[][src]

pub struct Message {
    pub exchange: String,
    pub market_type: MarketType,
    pub msg_type: MessageType,
    pub symbol: String,
    pub received_at: u64,
    pub json: String,

Message represents messages received by crawlers.


exchange: String

The exchange name, unique for each exchage

market_type: MarketType

Market type

msg_type: MessageType

Message type

symbol: String

Exchange specific symbol, used by RESTful APIs and websocket

received_at: u64

Unix timestamp in milliseconds

json: String

the original message


impl Message[src]

pub fn new(
    exchange: String,
    market_type: MarketType,
    symbol: String,
    msg_type: MessageType,
    json: String
) -> Self

Trait Implementations

impl<'de> Deserialize<'de> for Message[src]

impl Display for Message[src]

impl Serialize for Message[src]

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> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,