refix_fix44/generated/components/
nstd_ptys2_sub_grp.rs1#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{GroupTable, InvalidValue, LazyKnownTags, Tag};
5
6#[derive(Clone, Copy)]
8pub struct NstdPtys2SubGrp<'a>(refix_message::Scope<'a>);
9
10impl<'a> From<refix_message::Scope<'a>> for NstdPtys2SubGrp<'a> {
11 fn from(scope: refix_message::Scope<'a>) -> Self {
12 Self(scope)
13 }
14}
15
16impl<'a> NstdPtys2SubGrp<'a> {
17 pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
18 Tag(806),
19 Tag(760),
20 &[Tag(760), Tag(807)],
21 &[],
22 );
23
24 pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
25 static TAGS: LazyKnownTags = LazyKnownTags::new(&[Tag(760), Tag(807)], &[]);
26 &TAGS
27 }
28
29 pub fn raw(&self) -> refix_message::Scope<'a> {
30 self.0
31 }
32
33 #[doc(alias = "Nested2PartySubID")]
35 pub fn nested2_party_sub_id(&self) -> Result<Option<&'a str>, InvalidValue> {
36 self.0.get_str(Tag(760))
37 }
38
39 #[doc(alias = "Nested2PartySubIDType")]
41 pub fn nested2_party_sub_id_type(&self) -> Result<Option<i64>, InvalidValue> {
42 self.0.get_int(Tag(807))
43 }
44}
45
46impl std::fmt::Debug for NstdPtys2SubGrp<'_> {
47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48 write!(f, "NstdPtys2SubGrp({})", self.0)
49 }
50}