pub enum FieldValue {
String(String),
Int(i64),
UInt(u64),
Decimal(Decimal),
Bool(bool),
Char(char),
Data(Bytes),
}Expand description
Enumeration of possible FIX field value types.
Variants§
String(String)
String value.
Int(i64)
Integer value.
UInt(u64)
Unsigned integer value.
Decimal(Decimal)
Decimal/float value.
Bool(bool)
Boolean value (Y/N).
Char(char)
Single character value.
Data(Bytes)
Raw bytes (for data fields).
Implementations§
Source§impl FieldValue
impl FieldValue
Sourcepub const fn as_i64(&self) -> Option<i64>
pub const fn as_i64(&self) -> Option<i64>
Returns the value as an i64, if it is an Int variant.
Sourcepub const fn as_decimal(&self) -> Option<Decimal>
pub const fn as_decimal(&self) -> Option<Decimal>
Returns the value as a Decimal, if it is a Decimal variant.
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<'de> Deserialize<'de> for FieldValue
impl<'de> Deserialize<'de> for FieldValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FieldValue
impl Display for FieldValue
Source§impl PartialEq for FieldValue
impl PartialEq for FieldValue
Source§impl Serialize for FieldValue
impl Serialize for FieldValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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