Skip to main content

refix_fix44/generated/components/
instrmt_strk_px_grp.rs

1// @generated by refix codegen from FIX44.xml. Do not edit.
2#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{GroupTable, LazyKnownTags, Tag};
5
6use super::{EvntGrp, Instrument, SecAltIDGrp};
7
8/// An instance of the `NoStrikes` (428) group.
9#[derive(Clone, Copy)]
10pub struct InstrmtStrkPxGrp<'a>(refix_message::Scope<'a>);
11
12impl<'a> From<refix_message::Scope<'a>> for InstrmtStrkPxGrp<'a> {
13    fn from(scope: refix_message::Scope<'a>) -> Self {
14        Self(scope)
15    }
16}
17
18impl<'a> InstrmtStrkPxGrp<'a> {
19    pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
20        Tag(428),
21        Tag(55),
22        &[
23            Tag(22), Tag(48), Tag(55), Tag(65), Tag(106), Tag(107), Tag(167), Tag(200), Tag(201),
24            Tag(202), Tag(206), Tag(207), Tag(223), Tag(224), Tag(225), Tag(226), Tag(227),
25            Tag(228), Tag(231), Tag(239), Tag(240), Tag(255), Tag(348), Tag(349), Tag(350),
26            Tag(351), Tag(454), Tag(460), Tag(461), Tag(470), Tag(471), Tag(472), Tag(541),
27            Tag(543), Tag(667), Tag(691), Tag(762), Tag(864), Tag(873), Tag(874), Tag(875),
28            Tag(876), Tag(947),
29        ],
30        &[SecAltIDGrp::TABLE, EvntGrp::TABLE],
31    );
32
33    pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
34        static TAGS: LazyKnownTags = LazyKnownTags::new(&[], &[Instrument::known_tags()]);
35        &TAGS
36    }
37
38    pub fn raw(&self) -> refix_message::Scope<'a> {
39        self.0
40    }
41
42    /// The `Instrument` component.
43    pub fn instrument(&self) -> Instrument<'a> {
44        Instrument(self.0, Self::known_tags().get())
45    }
46}
47
48impl std::fmt::Debug for InstrmtStrkPxGrp<'_> {
49    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
50        write!(f, "InstrmtStrkPxGrp({})", self.0)
51    }
52}