pub trait BookLevelSource {
// Required methods
fn price(&self) -> Decimal;
fn quantity(&self) -> Decimal;
}Expand description
A price level of an order book in either wire form (REST or WebSocket), so one function can map both.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".