Struct FixGroup
pub struct FixGroup { /* private fields */ }Expand description
Non-owning wrapper for FIX repeating group (C++ FIXGroup*)
§Safety
This wrapper is only valid while the parent FIXMessage exists. Do not store FixGroup longer than the FixMessage it came from.
§Example
use fixantenna_bindings::FixMessage;
let mut msg = FixMessage::new("D", 4).unwrap();
msg.set(447, "2").unwrap(); // NoPartyIDs = 2
if let Some(group) = msg.get_group(447) {
println!("Group has {} entries", group.size());
}Implementations§
§impl FixGroup
impl FixGroup
pub fn leading_field(&self) -> i32
pub fn leading_field(&self) -> i32
Get the leading field tag (NoXxx field) for this group
pub fn is_supported(&self, tag: i32) -> bool
pub fn is_supported(&self, tag: i32) -> bool
Check if a tag is supported in this group
pub fn get(&self, index: i32) -> Option<FixGroupEntry>
pub fn get(&self, index: i32) -> Option<FixGroupEntry>
Get entry at specified index
Returns None if index is out of bounds
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixGroup
impl RefUnwindSafe for FixGroup
impl Sync for FixGroup
impl Unpin for FixGroup
impl UnwindSafe for FixGroup
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