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_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.
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.
Trait Implementations§
Source§impl Clone for RawMessage
impl Clone for RawMessage
Auto Trait Implementations§
impl !Freeze for RawMessage
impl RefUnwindSafe for RawMessage
impl Send for RawMessage
impl Sync for RawMessage
impl Unpin for RawMessage
impl UnsafeUnpin for RawMessage
impl UnwindSafe for RawMessage
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