pub trait FixField: Sized {
type Value;
const TAG: u32;
// Required methods
fn decode(bytes: &[u8]) -> Result<Self::Value, DecodeError>;
fn encode(value: &Self::Value, buf: &mut Vec<u8>);
}Expand description
Trait for typed FIX field access.
This trait is implemented by generated field types to provide type-safe access to field values.
Required Associated Constants§
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.