pub struct Component<'a>(/* private fields */);Expand description
A Component is an ordered collection of fields and/or other components.
There are two kinds of components: (1) common blocks and (2) repeating
groups. Common blocks are merely commonly reused sequences of the same
fields/components
which are given names for simplicity, i.e. they serve as “macros”. Repeating
groups, on the other hand, are components which can appear zero or more times
inside FIX messages (or other components, for that matter).
Implementations§
Source§impl<'a> Component<'a>
impl<'a> Component<'a>
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the name of self. The name of every Component is unique
across a Dictionary.
Sourcepub fn is_group(&self) -> bool
pub fn is_group(&self) -> bool
Returns true if and only if self is a “group” component; false
otherwise.
Sourcepub fn items(&self) -> impl Iterator<Item = LayoutItem<'_>>
pub fn items(&self) -> impl Iterator<Item = LayoutItem<'_>>
Returns an Iterator over all items that are part of self.
Sourcepub fn contains_field(&self, field: &Field<'_>) -> bool
pub fn contains_field(&self, field: &Field<'_>) -> bool
Checks whether field appears in the definition of self and returns
true if it does, false otherwise.