pub trait DmnElement {
    // Required methods
    fn namespace(&self) -> &str;
    fn model_name(&self) -> &str;
    fn id(&self) -> &String;
    fn opt_id(&self) -> Option<&String>;
    fn description(&self) -> &Option<String>;
    fn label(&self) -> &Option<String>;
    fn extension_elements(&self) -> &Vec<ExtensionElement>;
    fn extension_attributes(&self) -> &Vec<ExtensionAttribute>;
}
Expand description

DmnElement is the abstract superclass for the Decision Model elements. It provides the optional attributes id, description and label, which other elements will inherit.

Required Methods§

source

fn namespace(&self) -> &str

Namespace the element belongs to.

source

fn model_name(&self) -> &str

Name of the model the element was defined in.

source

fn id(&self) -> &String

Returns a reference to identifier for this DmnElement. This identifier SHALL be unique within its containing Definitions element.

source

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

Returns a reference to optional identifier for this DmnElement.

source

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

Returns reference to optional description of this DmnElement.

source

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

Returns reference to optional alternative short description of this DmnElement.

source

fn extension_elements(&self) -> &Vec<ExtensionElement>

Returns reference to attached additional elements to any DmnElement.

source

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

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

Implementors§