Struct dfx_base::data_dictionary::DataDictionary
source · 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<&String>
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<&DDField>
pub fn fields_by_name(&self) -> &BTreeMap<String, DDField>
pub fn messages(&self) -> &BTreeMap<String, 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 copy of the value. Read more
1.0.0 · 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
source§impl Default for DataDictionary
impl Default for DataDictionary
source§fn default() -> DataDictionary
fn default() -> DataDictionary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DataDictionary
impl Send for DataDictionary
impl Sync for DataDictionary
impl Unpin 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