Struct dsntk_model::Definitions
source · pub struct Definitions { /* private fields */ }Expand description
Definitions element is the outermost containing object for all elements of a DMN decision model. It defines the scope of visibility and the namespace for all contained elements.
Implementations§
source§impl Definitions
impl Definitions
sourcepub fn expression_language(&self) -> &Option<String>
pub fn expression_language(&self) -> &Option<String>
Returns the reference to optional expression language used within the scope of this Definitions.
sourcepub fn type_language(&self) -> &Option<String>
pub fn type_language(&self) -> &Option<String>
Returns reference to the type language used within the scope of this Definitions.
sourcepub fn exporter(&self) -> &Option<String>
pub fn exporter(&self) -> &Option<String>
Returns reference to the name of the tool used to export the XML serialization.
sourcepub fn exporter_version(&self) -> &Option<String>
pub fn exporter_version(&self) -> &Option<String>
Returns reference to the version of the tool used to export the XML serialization.
sourcepub fn item_definitions(&self) -> &Vec<ItemDefinition>
pub fn item_definitions(&self) -> &Vec<ItemDefinition>
Returns reference to the container of instances of ItemDefinition contained in this Definitions.
sourcepub fn imports(&self) -> &Vec<Import>
pub fn imports(&self) -> &Vec<Import>
Returns reference to the container of instances of Import contained in this Definitions.
sourcepub fn drg_elements(&self) -> Iter<'_, DrgElement>
pub fn drg_elements(&self) -> Iter<'_, DrgElement>
Returns reference to DrgElements container.
sourcepub fn business_knowledge_models(&self) -> Vec<BusinessKnowledgeModel>
pub fn business_knowledge_models(&self) -> Vec<BusinessKnowledgeModel>
Returns all business knowledge model definitions.
sourcepub fn decision_services(&self) -> Vec<DecisionService>
pub fn decision_services(&self) -> Vec<DecisionService>
Returns all decision services definitions.
sourcepub fn knowledge_sources(&self) -> Vec<&KnowledgeSource>
pub fn knowledge_sources(&self) -> Vec<&KnowledgeSource>
Returns all knowledge source definitions.
sourcepub fn input_data(&self) -> Vec<InputData>
pub fn input_data(&self) -> Vec<InputData>
Returns all input data definitions.
sourcepub fn performance_indicators(&self) -> Vec<&PerformanceIndicator>
pub fn performance_indicators(&self) -> Vec<&PerformanceIndicator>
Returns performance indicators.
sourcepub fn organisation_units(&self) -> Vec<&OrganizationUnit>
pub fn organisation_units(&self) -> Vec<&OrganizationUnit>
Returns organisation units.
sourcepub fn get_decision(&self, id: &str) -> Option<&Decision>
pub fn get_decision(&self, id: &str) -> Option<&Decision>
Returns decision with specified identifier.
sourcepub fn get_input_data(&self, id: &str) -> Option<&InputData>
pub fn get_input_data(&self, id: &str) -> Option<&InputData>
Returns input data with specified identifier.
sourcepub fn get_business_knowledge_model(
&self,
id: &str,
) -> Option<&BusinessKnowledgeModel>
pub fn get_business_knowledge_model( &self, id: &str, ) -> Option<&BusinessKnowledgeModel>
Returns business knowledge model with specified identifier.
sourcepub fn get_knowledge_source(&self, id: &str) -> Option<&KnowledgeSource>
pub fn get_knowledge_source(&self, id: &str) -> Option<&KnowledgeSource>
Returns knowledge source with specified identifier.
sourcepub fn get_requirement(&self, id: &str) -> Option<Requirement>
pub fn get_requirement(&self, id: &str) -> Option<Requirement>
Returns a requirement with specified identifier.
Trait Implementations§
source§impl Clone for Definitions
impl Clone for Definitions
source§fn clone(&self) -> Definitions
fn clone(&self) -> Definitions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Definitions
impl Debug for Definitions
source§impl DmnElement for Definitions
impl DmnElement for Definitions
source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
source§fn id(&self) -> &String
fn id(&self) -> &String
source§fn opt_id(&self) -> Option<&String>
fn opt_id(&self) -> Option<&String>
source§fn description(&self) -> &Option<String>
fn description(&self) -> &Option<String>
source§fn label(&self) -> &Option<String>
fn label(&self) -> &Option<String>
source§fn extension_elements(&self) -> &Vec<ExtensionElement>
fn extension_elements(&self) -> &Vec<ExtensionElement>
source§fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
Auto Trait Implementations§
impl Freeze for Definitions
impl RefUnwindSafe for Definitions
impl Send for Definitions
impl Sync for Definitions
impl Unpin for Definitions
impl UnwindSafe for Definitions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)