#![cfg_attr(rustfmt, rustfmt::skip)]
use refix_message::{GroupTable, InvalidValue, LazyKnownTags, Tag};
#[derive(Clone, Copy)]
pub struct UnderlyingStipulations<'a>(refix_message::Scope<'a>);
impl<'a> From<refix_message::Scope<'a>> for UnderlyingStipulations<'a> {
fn from(scope: refix_message::Scope<'a>) -> Self {
Self(scope)
}
}
impl<'a> UnderlyingStipulations<'a> {
pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
Tag(887),
Tag(888),
&[Tag(888), Tag(889)],
&[],
);
pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
static TAGS: LazyKnownTags = LazyKnownTags::new(&[Tag(888), Tag(889)], &[]);
&TAGS
}
pub fn raw(&self) -> refix_message::Scope<'a> {
self.0
}
#[doc(alias = "UnderlyingStipType")]
pub fn underlying_stip_type(&self) -> Result<Option<&'a str>, InvalidValue> {
self.0.get_str(Tag(888))
}
#[doc(alias = "UnderlyingStipValue")]
pub fn underlying_stip_value(&self) -> Result<Option<&'a str>, InvalidValue> {
self.0.get_str(Tag(889))
}
}
impl std::fmt::Debug for UnderlyingStipulations<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnderlyingStipulations({})", self.0)
}
}