pub struct Message { /* private fields */ }
Implementations§
Source§impl Message
impl Message
pub fn new(begin_string: &str, message_type: &str) -> Self
pub fn from_bytes( config: &Config, dict: &Dictionary, data: &[u8], ) -> ParsedMessage
pub fn encode(&mut self, config: &Config) -> EncodingResult<Vec<u8>>
pub fn header(&self) -> &Header
pub fn header_mut(&mut self) -> &mut Header
pub fn trailer(&self) -> &Trailer
pub fn get_group( &self, start_field: &HardCodedFixFieldDefinition, index: usize, ) -> Option<&RepeatingGroup>
Trait Implementations§
Source§impl Part for Message
impl Part for Message
fn get_field_map(&self) -> &FieldMap
fn get_field_map_mut(&mut self) -> &mut FieldMap
fn set<'a, V>(
&'a mut self,
field_definition: &HardCodedFixFieldDefinition,
value: V,
)where
V: FieldType<'a>,
fn store_field(&mut self, field: Field)
fn get<'a, V>(
&'a self,
field: &HardCodedFixFieldDefinition,
) -> Result<V, FieldValueError<V::Error>>where
V: FieldType<'a>,
fn get_raw(&self, field: &HardCodedFixFieldDefinition) -> Option<&[u8]>
fn pop(&mut self, field: &HardCodedFixFieldDefinition) -> Option<Field>
fn set_groups(&mut self, groups: Vec<RepeatingGroup>)
fn get_group(&self, start_tag: TagU32, index: usize) -> Option<&RepeatingGroup>
fn calculate_length(&self) -> usize
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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