Struct dsntk_model::DmnDiagram
source · pub struct DmnDiagram {
pub id: Option<String>,
pub name: Option<String>,
pub documentation: String,
pub resolution: f64,
pub diagram_elements: Vec<DmnDiagramElement>,
pub shared_style: Option<String>,
pub local_style: Option<DmnStyle>,
pub size: Option<DcDimension>,
}Expand description
DmnDiagram is the container of DmnDiagramElement (DmnShape (s) and DmnEdge (s)). DmnDiagram cannot include other DmnDiagrams.
Fields§
§id: Option<String>DmnDiagram id.
name: Option<String>The name of the diagram. Default is empty String.
documentation: StringThe documentation of the diagram. Default is empty String.
resolution: f64The resolution of the diagram expressed in user units per inch. Default is 300.
diagram_elements: Vec<DmnDiagramElement>A list of DmnDiagramElement (DmnShape and DmnEdge) that are depicted in this diagram.
A reference to a DmnStyle defined in the Dmndi that serves as the default styling of the DmnDiagramElement in this DmnDiagram.
local_style: Option<DmnStyle>A DmnStyle that defines the default styling for this diagram. Properties defined in that style override the ones in the ‘sharedStyle’.
size: Option<DcDimension>The size of this diagram. If not specified, the DmnDiagram is unbounded.
Trait Implementations§
source§impl Clone for DmnDiagram
impl Clone for DmnDiagram
source§fn clone(&self) -> DmnDiagram
fn clone(&self) -> DmnDiagram
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 DmnDiagram
impl Debug for DmnDiagram
source§impl Default for DmnDiagram
impl Default for DmnDiagram
source§fn default() -> DmnDiagram
fn default() -> DmnDiagram
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DmnDiagram
impl RefUnwindSafe for DmnDiagram
impl Send for DmnDiagram
impl Sync for DmnDiagram
impl Unpin for DmnDiagram
impl UnwindSafe for DmnDiagram
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)