refix_fix44/generated/components/
ioi_qual_grp.rs1#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{GroupTable, InvalidValue, LazyKnownTags, Tag};
5
6use super::super::enums::IOIQualifier;
7
8#[derive(Clone, Copy)]
10pub struct IOIQualGrp<'a>(refix_message::Scope<'a>);
11
12impl<'a> From<refix_message::Scope<'a>> for IOIQualGrp<'a> {
13 fn from(scope: refix_message::Scope<'a>) -> Self {
14 Self(scope)
15 }
16}
17
18impl<'a> IOIQualGrp<'a> {
19 pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
20 Tag(199),
21 Tag(104),
22 &[Tag(104)],
23 &[],
24 );
25
26 pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
27 static TAGS: LazyKnownTags = LazyKnownTags::new(&[Tag(104)], &[]);
28 &TAGS
29 }
30
31 pub fn raw(&self) -> refix_message::Scope<'a> {
32 self.0
33 }
34
35 #[doc(alias = "IOIQualifier")]
37 pub fn ioi_qualifier(&self) -> Result<Option<IOIQualifier<'a>>, InvalidValue> {
38 Ok(self.0.get_str(Tag(104))?.map(IOIQualifier::from_value))
39 }
40}
41
42impl std::fmt::Debug for IOIQualGrp<'_> {
43 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44 write!(f, "IOIQualGrp({})", self.0)
45 }
46}