pub trait FixMessage: Sized {
const MSG_TYPE: &'static str;
// Required methods
fn from_raw(raw: &RawMessage<'_>) -> Result<Self, DecodeError>;
fn encode(&self, buf: &mut Vec<u8>) -> Result<(), EncodeError>;
}Expand description
Trait for typed FIX message access.
This trait is implemented by generated message types to provide type-safe encoding and decoding.
Required Associated Constants§
Required Methods§
Sourcefn from_raw(raw: &RawMessage<'_>) -> Result<Self, DecodeError>
fn from_raw(raw: &RawMessage<'_>) -> Result<Self, DecodeError>
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.