pub struct RawMessage { /* private fields */ }Expand description
Raw bytes of a FIX message and an index of every field in wire order.
Implementations§
Source§impl RawMessage
impl RawMessage
Sourcepub fn get_group(
&self,
table: &impl GroupLayout,
known: &KnownTags<'_>,
) -> Result<Option<Group<'_>>, InvalidValue>
pub fn get_group( &self, table: &impl GroupLayout, known: &KnownTags<'_>, ) -> Result<Option<Group<'_>>, InvalidValue>
The group table describes, read from the whole frame.
Source§impl RawMessage
impl RawMessage
Sourcepub fn scope_between(&self, start: Slot, end: Slot) -> Option<Scope<'_>>
pub fn scope_between(&self, start: Slot, end: Slot) -> Option<Scope<'_>>
The scope over the fields from start up to end, or None if
they don’t fit this message.
Sourcepub fn get(&self, tag: Tag) -> Option<&[u8]>
pub fn get(&self, tag: Tag) -> Option<&[u8]>
Value of the first occurrence of tag, scanning from the start.
Sourcepub fn get_str(&self, tag: Tag) -> Result<Option<&str>, InvalidValue>
pub fn get_str(&self, tag: Tag) -> Result<Option<&str>, InvalidValue>
First occurrence of tag as UTF-8 text or Ok(None) when absent.
Sourcepub fn get_int(&self, tag: Tag) -> Result<Option<i64>, InvalidValue>
pub fn get_int(&self, tag: Tag) -> Result<Option<i64>, InvalidValue>
First occurrence of tag parsed as an integer or Ok(None) when absent.
Sourcepub fn get_bool(&self, tag: Tag) -> Result<Option<bool>, InvalidValue>
pub fn get_bool(&self, tag: Tag) -> Result<Option<bool>, InvalidValue>
First occurrence of tag parsed as a boolean or Ok(None) when absent.
Sourcepub fn get_decimal(&self, tag: Tag) -> Result<Option<Decimal>, InvalidValue>
pub fn get_decimal(&self, tag: Tag) -> Result<Option<Decimal>, InvalidValue>
First occurrence of tag parsed as a decimal or Ok(None) when absent.
Sourcepub fn get_utc_timestamp(
&self,
tag: Tag,
) -> Result<Option<UtcTimestamp>, InvalidValue>
pub fn get_utc_timestamp( &self, tag: Tag, ) -> Result<Option<UtcTimestamp>, InvalidValue>
First occurrence of tag parsed as a UTC timestamp or Ok(None) when absent.
Sourcepub fn get_date(&self, tag: Tag) -> Result<Option<Date>, InvalidValue>
pub fn get_date(&self, tag: Tag) -> Result<Option<Date>, InvalidValue>
First occurrence of tag parsed as a date or Ok(None) when absent.
Sourcepub fn get_time(&self, tag: Tag) -> Result<Option<Time>, InvalidValue>
pub fn get_time(&self, tag: Tag) -> Result<Option<Time>, InvalidValue>
First occurrence of tag parsed as a time of day or Ok(None) when absent.
Sourcepub fn get_month_year(
&self,
tag: Tag,
) -> Result<Option<MonthYear>, InvalidValue>
pub fn get_month_year( &self, tag: Tag, ) -> Result<Option<MonthYear>, InvalidValue>
First occurrence of tag parsed as a month or Ok(None) when absent.
Source§impl RawMessage
impl RawMessage
Sourcepub fn get_multiple_values<T>(
&self,
tag: Tag,
) -> Result<Option<MultipleValues<'_, T>>, InvalidValue>
pub fn get_multiple_values<T>( &self, tag: Tag, ) -> Result<Option<MultipleValues<'_, T>>, InvalidValue>
The values of a multiple-value field, read from the whole frame.