pub trait StreamParser {
type Output;
// Required method
fn parse(message: &Value, market: Option<&Market>) -> Result<Self::Output>;
}Expand description
Trait for parsing WebSocket stream messages into typed data.
Implementations of this trait handle the conversion of raw JSON messages from Binance WebSocket streams into strongly-typed Rust structures.
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.