pub struct DataDictionary { /* private fields */ }Implementations§
Source§impl DataDictionary
impl DataDictionary
pub fn from_file<P: AsRef<Path>>( path: P, ) -> Result<DataDictionary, DataDictionaryError>
pub fn version(&self) -> Option<&Arc<str>>
pub fn header(&self) -> &DDMap
pub fn trailer(&self) -> &DDMap
pub fn is_header_field(&self, tag: Tag) -> bool
pub fn is_trailer_field(&self, tag: Tag) -> bool
pub fn validate( message: &Message, session_data_dictionary: Option<&DataDictionary>, app_data_dictionary: &DataDictionary, begin_string: &str, msg_type: &str, ) -> Result<(), MessageValidationError>
pub fn get_map_for_message(&self, msg_type: &str) -> Option<&DDMap>
pub fn get_field_by_name(&self, field_name: &str) -> Option<&Arc<DDField>>
pub fn fields_by_name(&self) -> &BTreeMap<Arc<str>, Arc<DDField>>
pub fn messages(&self) -> &BTreeMap<Arc<str>, DDMap>
pub fn check_fields_have_values(&self) -> bool
pub fn check_fields_have_values_mut(&mut self) -> &mut bool
pub fn set_check_fields_have_values(&mut self, check_fields_have_values: bool)
pub fn check_fields_out_of_order_mut(&mut self) -> &mut bool
pub fn set_check_fields_out_of_order(&mut self, check_fields_out_of_order: bool)
pub fn check_user_defined_fields(&self) -> bool
pub fn check_user_defined_fields_mut(&mut self) -> &mut bool
pub fn set_check_user_defined_fields(&mut self, check_user_defined_fields: bool)
pub fn allow_unknown_message_fields(&self) -> bool
pub fn allow_unknown_message_fields_mut(&mut self) -> &mut bool
pub fn set_allow_unknown_message_fields( &mut self, allow_unknown_message_fields: bool, )
Source§impl DataDictionary
impl DataDictionary
pub fn new() -> DataDictionary
pub fn load(&mut self, path: &str) -> Result<Self, DataDictionaryError>
pub fn load_from_string(contents: &str) -> Result<Self, DataDictionaryError>
Trait Implementations§
Source§impl Clone for DataDictionary
impl Clone for DataDictionary
Source§fn clone(&self) -> DataDictionary
fn clone(&self) -> DataDictionary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataDictionary
impl Debug for DataDictionary
Auto Trait Implementations§
impl Freeze for DataDictionary
impl RefUnwindSafe for DataDictionary
impl Send for DataDictionary
impl Sync for DataDictionary
impl Unpin for DataDictionary
impl UnsafeUnpin for DataDictionary
impl UnwindSafe for DataDictionary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more