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§
Sourcefn time_exchange(&self) -> DateTime<Utc>
fn time_exchange(&self) -> DateTime<Utc>
When the provider stamped it.
Provided Methods§
Sourcefn subscription_id(&self) -> SubscriptionId
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".