pub enum PublicMessage {
PingPong(PingPong),
Heartbeat,
SystemStatus(SystemStatus),
SubscriptionStatus(SubscriptionStatus),
ErrorMessage(ErrorMessage),
Trade(Message<Vec<PublicTrade>>),
Ticker(Box<Message<WSSTickerInfo>>),
OHLC(Message<OHLC>),
Spread(Message<Spread>),
Orderbook(Message<Orderbook>),
OrderbookUpdate(OrderbookUpdateMessage),
}
Expand description
Represents all possible public message types
Variants§
PingPong(PingPong)
Heartbeat
SystemStatus(SystemStatus)
SubscriptionStatus(SubscriptionStatus)
ErrorMessage(ErrorMessage)
Trade(Message<Vec<PublicTrade>>)
Ticker(Box<Message<WSSTickerInfo>>)
OHLC(Message<OHLC>)
Spread(Message<Spread>)
Orderbook(Message<Orderbook>)
OrderbookUpdate(OrderbookUpdateMessage)
Trait Implementations§
Source§impl Debug for PublicMessage
impl Debug for PublicMessage
Source§impl<'de> Deserialize<'de> for PublicMessage
impl<'de> Deserialize<'de> for PublicMessage
Source§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
Source§impl PartialEq for PublicMessage
impl PartialEq for PublicMessage
impl StructuralPartialEq for PublicMessage
Auto Trait Implementations§
impl Freeze for PublicMessage
impl RefUnwindSafe for PublicMessage
impl Send for PublicMessage
impl Sync for PublicMessage
impl Unpin for PublicMessage
impl UnwindSafe for PublicMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more