pub enum OutboundField {
Raw {
tag: u32,
value: Vec<u8>,
},
Data {
length_tag: u32,
data_tag: u32,
value: Vec<u8>,
},
}Expand description
A single body field of an OutboundMessage, in the form the encoder
needs to stamp it.
Most fields are OutboundField::Raw and are written verbatim. A FIX
DATA field (RawData/96, Signature/89, the Encoded* family) legally
contains the SOH delimiter and =, so it is decodable only alongside its
paired LENGTH field; those fields are OutboundField::Data and are
emitted as a counted pair so the payload’s SOH bytes are never read as field
terminators.
Variants§
Raw
An ordinary field, written as tag=value<SOH>.
Data
A counted LENGTH/DATA pair, written as
length_tag=<value.len()><SOH>data_tag=<value><SOH>.
Trait Implementations§
Source§impl Clone for OutboundField
impl Clone for OutboundField
Source§fn clone(&self) -> OutboundField
fn clone(&self) -> OutboundField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutboundField
impl Debug for OutboundField
impl Eq for OutboundField
Source§impl PartialEq for OutboundField
impl PartialEq for OutboundField
impl StructuralPartialEq for OutboundField
Auto Trait Implementations§
impl Freeze for OutboundField
impl RefUnwindSafe for OutboundField
impl Send for OutboundField
impl Sync for OutboundField
impl Unpin for OutboundField
impl UnsafeUnpin for OutboundField
impl UnwindSafe for OutboundField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more