pub trait InstrumentData{
type Key: Debug + Clone + Eq + Send + Sync;
// Required methods
fn key(&self) -> &Self::Key;
fn kind(&self) -> &MarketDataInstrumentKind;
}Expand description
Instrument related data that defines an associated unique Id.
Verbose InstrumentData is often used to subscribe to market data feeds, but it’s unique Id
can then be used to key consumed MarketEvents, significantly reducing
duplication in the case of complex instruments (eg/ options).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.