Skip to main content

MassiveMessage

Trait MassiveMessage 

Source
pub trait MassiveMessage: DeserializeOwned {
    // Required methods
    fn event(&self) -> &str;
    fn symbol(&self) -> &str;
    fn time_exchange(&self) -> DateTime<Utc>;

    // Provided method
    fn subscription_id(&self) -> SubscriptionId { ... }
}
Expand description

A Massive market data message: what every kind’s message has in common.

Required Methods§

Source

fn event(&self) -> &str

The channel the message was published on: its ev.

Source

fn symbol(&self) -> &str

The market it concerns, spelled as the subscription spelled it.

Source

fn time_exchange(&self) -> DateTime<Utc>

When the provider stamped it.

Provided Methods§

Source

fn subscription_id(&self) -> SubscriptionId

The subscription it belongs to, as the instrument map keys subscriptions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§