#![cfg_attr(rustfmt, rustfmt::skip)]
use refix_message::{GroupTable, InvalidValue, LazyKnownTags, Tag};
#[derive(Clone, Copy)]
pub struct NstdPtys2SubGrp<'a>(refix_message::Scope<'a>);
impl<'a> From<refix_message::Scope<'a>> for NstdPtys2SubGrp<'a> {
fn from(scope: refix_message::Scope<'a>) -> Self {
Self(scope)
}
}
impl<'a> NstdPtys2SubGrp<'a> {
pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
Tag(806),
Tag(760),
&[Tag(760), Tag(807)],
&[],
);
pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
static TAGS: LazyKnownTags = LazyKnownTags::new(&[Tag(760), Tag(807)], &[]);
&TAGS
}
pub fn raw(&self) -> refix_message::Scope<'a> {
self.0
}
#[doc(alias = "Nested2PartySubID")]
pub fn nested2_party_sub_id(&self) -> Result<Option<&'a str>, InvalidValue> {
self.0.get_str(Tag(760))
}
#[doc(alias = "Nested2PartySubIDType")]
pub fn nested2_party_sub_id_type(&self) -> Result<Option<i64>, InvalidValue> {
self.0.get_int(Tag(807))
}
}
impl std::fmt::Debug for NstdPtys2SubGrp<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NstdPtys2SubGrp({})", self.0)
}
}