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§
Sourcefn model_name(&self) -> &str
fn model_name(&self) -> &str
Name of the model the element was defined in.
Sourcefn id(&self) -> &String
fn id(&self) -> &String
Returns a reference to identifier for this DmnElement. This identifier SHALL be unique within its containing Definitions element.
Sourcefn opt_id(&self) -> Option<&String>
fn opt_id(&self) -> Option<&String>
Returns a reference to optional identifier for this DmnElement.
Sourcefn description(&self) -> &Option<String>
fn description(&self) -> &Option<String>
Returns reference to optional description of this DmnElement.
Sourcefn label(&self) -> &Option<String>
fn label(&self) -> &Option<String>
Returns reference to optional alternative short description of this DmnElement.
Sourcefn extension_elements(&self) -> &Vec<ExtensionElement>
fn extension_elements(&self) -> &Vec<ExtensionElement>
Returns reference to attached additional elements to any DmnElement.
Sourcefn extension_attributes(&self) -> &Vec<ExtensionAttribute>
fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
Returns reference to attached named extended attributes and model associations to any DmnElement.