pub struct ItemDefinition { /* private fields */ }Expand description
ItemDefinition is used to model the inputs of a decision, whose values are defined outside the decision model.
Implementations§
Source§impl ItemDefinition
impl ItemDefinition
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 ItemDefinition.
Sourcepub fn allowed_values(&self) -> &Option<UnaryTests>
pub fn allowed_values(&self) -> &Option<UnaryTests>
Returns reference to possible values or ranges of values in the base type that are allowed in this ItemDefinition.
Sourcepub fn item_components(&self) -> &Vec<ItemDefinition>
pub fn item_components(&self) -> &Vec<ItemDefinition>
Returns reference to nested ItemDefinitions that compose this ItemDefinition.
Sourcepub fn item_components_mut(&mut self) -> &mut Vec<ItemDefinition>
pub fn item_components_mut(&mut self) -> &mut Vec<ItemDefinition>
Returns mutable reference to nested ItemDefinitions that compose this ItemDefinition.
Sourcepub fn is_collection(&self) -> bool
pub fn is_collection(&self) -> bool
Returns flag indicating if the actual values are collections of allowed values.
Sourcepub fn set_feel_type(&mut self, feel_type: FeelType)
pub fn set_feel_type(&mut self, feel_type: FeelType)
Sets the FEEL type for this element.
Sourcepub fn function_item(&self) -> &Option<FunctionItem>
pub fn function_item(&self) -> &Option<FunctionItem>
Returns a reference to an optional FunctionItem that compose this ItemDefinition.
Trait Implementations§
Source§impl Clone for ItemDefinition
impl Clone for ItemDefinition
Source§fn clone(&self) -> ItemDefinition
fn clone(&self) -> ItemDefinition
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 ItemDefinition
impl Debug for ItemDefinition
Source§impl DmnElement for ItemDefinition
impl DmnElement for ItemDefinition
Source§fn model_name(&self) -> &str
fn model_name(&self) -> &str
Name of the model the element was defined in.
Source§fn 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.
Source§fn opt_id(&self) -> Option<&String>
fn opt_id(&self) -> Option<&String>
Returns a reference to optional identifier for this DmnElement.
Source§fn description(&self) -> &Option<String>
fn description(&self) -> &Option<String>
Returns reference to optional description of this DmnElement.
Source§fn label(&self) -> &Option<String>
fn label(&self) -> &Option<String>
Returns reference to optional alternative short description of this DmnElement.
Source§fn extension_elements(&self) -> &Vec<ExtensionElement>
fn extension_elements(&self) -> &Vec<ExtensionElement>
Returns reference to attached additional elements to any DmnElement.
Source§fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
Returns reference to attached named extended attributes and model associations to any DmnElement.
Source§impl Expression for ItemDefinition
impl Expression for ItemDefinition
Auto Trait Implementations§
impl Freeze for ItemDefinition
impl RefUnwindSafe for ItemDefinition
impl Send for ItemDefinition
impl Sync for ItemDefinition
impl Unpin for ItemDefinition
impl UnwindSafe for ItemDefinition
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