Struct dsntk_model::DmnShape
source · pub struct DmnShape {
pub id: Option<String>,
pub bounds: DcBounds,
pub dmn_element_ref: Option<String>,
pub is_listed_input_data: bool,
pub decision_service_divider_line: Option<DmnDecisionServiceDividerLine>,
pub is_collapsed: bool,
pub shared_style: Option<String>,
pub local_style: Option<DmnStyle>,
pub label: Option<DmnLabel>,
}Expand description
DmnShape represents a Decision, a BusinessKnowledgeModel, an InputData element, a KnowledgeSource, a DecisionService or a TextAnnotation that is depicted on the diagram.
Fields§
§id: Option<String>Unique identifier of this DmnShape.
bounds: DcBoundsThe DcBounds of the shape relative to the origin of its parent DmnDiagram. The DcBounds MUST be specified.
dmn_element_ref: Option<String>A reference to a Decision, a BusinessKnowledgeModel, an InputData element, a KnowledgeSource, a DecisionService or a TextAnnotation MUST be specified.
is_listed_input_data: boolIf the DmnShape depicts an InputData element then this attribute is used to determine if the InputData is listed on the Decision element (true) or drawn as separate notational elements in the DRD (false).
decision_service_divider_line: Option<DmnDecisionServiceDividerLine>If the DmnShape depicts a DecisionService, this attribute references a DmnDecisionServiceDividerLine that defines,
where the DmnShape is divided into two parts by a straight solid line.
This can be the case when a DmnShape depicts a DecisionService,
where the set of output decisions is smaller than the set of encapsulated decisions.
The start and end waypoints of the decisionServiceDividerLine MUST be on the border of the DmnShape.
is_collapsed: boolIf the DmnShape depicts a DecisionService, this attribute indicates
if it should be depicted expanded (false) or collapsed (true).
Default is false.
local_style: Option<DmnStyle>A DmnStyle that defines the styling for this element.
label: Option<DmnLabel>An optional label when this DmnElement has a visible text label.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmnShape
impl RefUnwindSafe for DmnShape
impl Send for DmnShape
impl Sync for DmnShape
impl Unpin for DmnShape
impl UnwindSafe for DmnShape
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)