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: DcBounds

The 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: bool

If 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: bool

If the DmnShape depicts a DecisionService, this attribute indicates if it should be depicted expanded (false) or collapsed (true). Default is false.

§shared_style: Option<String>

A reference to a DmnStyle defined in the Dmndi.

§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§

source§

impl Clone for DmnShape

source§

fn clone(&self) -> DmnShape

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 DmnShape

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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 T
where 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.