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

source

pub fn namespace(&self) -> &str

Returns the reference to the namespace associated with this Definitions.

source

pub fn expression_language(&self) -> &Option<String>

Returns the reference to optional expression language used within the scope of this Definitions.

source

pub fn type_language(&self) -> &Option<String>

Returns reference to the type language used within the scope of this Definitions.

source

pub fn exporter(&self) -> &Option<String>

Returns reference to the name of the tool used to export the XML serialization.

source

pub fn exporter_version(&self) -> &Option<String>

Returns reference to the version of the tool used to export the XML serialization.

source

pub fn item_definitions(&self) -> &Vec<ItemDefinition>

Returns reference to the container of instances of ItemDefinition contained in this Definitions.

source

pub fn item_definition_by_name(&self, name: &str) -> Option<&ItemDefinition>

Returns an optional reference to ItemDefinition with specified name or None when such ItemDefinition was not found in this Definitions.

source

pub fn business_context_elements(&self) -> &Vec<BusinessContextElementInstance>

Returns reference to the container of instances of BusinessContextElement contained in this Definitions.

source

pub fn imports(&self) -> &Vec<Import>

Returns reference to the container of instances of Import contained in this Definitions.

source

pub fn dmndi(&self) -> &Option<Dmndi>

Returns reference to optional Dmndi container.

source

pub fn drg_elements(&self) -> Iter<'_, DrgElement>

Returns reference to DrgElements container.

source

pub fn decisions(&self) -> Vec<Decision>

Returns all decision definitions.

source

pub fn business_knowledge_models(&self) -> Vec<BusinessKnowledgeModel>

Returns all business knowledge model definitions.

source

pub fn decision_services(&self) -> Vec<DecisionService>

Returns all decision services definitions.

source

pub fn knowledge_sources(&self) -> Vec<KnowledgeSource>

Returns all knowledge source definitions.

source

pub fn input_data(&self) -> Vec<InputData>

Returns all input data definitions.

source

pub fn get_decision(&self, id: &str) -> Option<Decision>

Returns decision with specified identifier.

source

pub fn get_input_data(&self, id: &str) -> Option<InputData>

Returns input data with specified identifier.

source

pub fn get_business_knowledge_model( &self, id: &str ) -> Option<BusinessKnowledgeModel>

Returns business knowledge model with specified identifier.

source

pub fn get_knowledge_source(&self, id: &str) -> Option<KnowledgeSource>

Returns knowledge source with specified identifier.

source

pub fn get_requirement(&self, id: &str) -> Option<Requirement>

Returns a requirement with specified identifier.

Trait Implementations§

source§

impl Clone for Definitions

source§

fn clone(&self) -> Definitions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Definitions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DmnElement for Definitions

source§

fn id(&self) -> &Option<String>

Returns reference to optional identifier for this Definitions.

source§

fn description(&self) -> &Option<String>

Returns reference to optional description of this Definitions.

source§

fn label(&self) -> &Option<String>

Returns reference to optional alternative short description of this Definitions.

source§

fn extension_elements(&self) -> &Option<ExtensionElements>

Returns reference to attached additional elements to any Definitions.

source§

fn extension_attributes(&self) -> &Vec<ExtensionAttribute>

Returns reference to attached named extended attributes and model associations to any Definitions.

source§

impl NamedElement for Definitions

source§

fn name(&self) -> &str

Returns reference to the name of this Definitions.

source§

fn feel_name(&self) -> &Name

Returns a reference to FEEL name of this element.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.