pub struct Group { /* private fields */ }Expand description
Represents a repeating group in the FIX protocol.
A group is a collection of fields, components, and/or nested groups that can appear multiple times within a message. Each group has a counter field that specifies how many instances of the group appear.
§Naming Convention
In XML dictionaries, groups follow a naming convention:
- The counter field uses the “No” prefix:
NoHops,NoLegs,NoPartyIDs - The group name omits the prefix:
Hops,Legs,PartyIDs
§Example
From the XML:
<group name='NoHops' required='N'>
<field name='HopCompID' required='N' />
<field name='HopSendingTime' required='N' />
</group>Creates a Group with:
name()returns"Hops"num_in_group()returns the field"NoHops"(tag 627)members()containsHopCompIDandHopSendingTime
Implementations§
Source§impl Group
impl Group
Sourcepub fn doc(&self) -> Option<&str>
pub fn doc(&self) -> Option<&str>
Returns the documentation text of this group, if any
For a group unwrapped from a component that contained only this group, this is the component’s documentation if present, otherwise the group’s own documentation - mirroring how the group takes over the component’s name.
Sourcepub fn num_in_group(&self) -> &Field
pub fn num_in_group(&self) -> &Field
Returns a reference to the NumInGroup field that counts instances of this group
In the FIX protocol, repeating groups start with a field that indicates how many instances of the group follow.