pub enum FieldValue {
String(String),
Int(i64),
UInt(u64),
Float(f64),
Bool(bool),
Bytes(Vec<u8>),
Decimal {
mantissa: i64,
scale: i32,
},
Timestamp(u64),
Optional(Option<Box<FieldValue>>),
}Expand description
FIX field value types.
Variants§
String(String)
String value
Int(i64)
Integer value
UInt(u64)
Unsigned integer value
Float(f64)
Float value
Bool(bool)
Boolean value
Bytes(Vec<u8>)
Raw bytes
Decimal
Decimal value (for prices, quantities)
Timestamp(u64)
Timestamp in nanoseconds since epoch
Optional(Option<Box<FieldValue>>)
Optional field (None represents absent field)
Implementations§
Source§impl FieldValue
impl FieldValue
Sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Check if field is present (not None in Optional).
Trait Implementations§
Source§impl Clone for FieldValue
impl Clone for FieldValue
Source§fn clone(&self) -> FieldValue
fn clone(&self) -> FieldValue
Returns a duplicate of the value. Read more
1.0.0 · 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 FieldValue
impl Debug for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
impl StructuralPartialEq for FieldValue
Auto Trait Implementations§
impl Freeze for FieldValue
impl RefUnwindSafe for FieldValue
impl Send for FieldValue
impl Sync for FieldValue
impl Unpin for FieldValue
impl UnwindSafe for FieldValue
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