InputDiagram

Struct InputDiagram 

Source
pub struct InputDiagram {
Show 15 fields pub things: ThingNames, pub thing_copy_text: ThingCopyText, pub thing_hierarchy: ThingHierarchy, pub thing_dependencies: ThingDependencies, pub thing_interactions: ThingInteractions, pub processes: Processes, pub tags: TagNames, pub tag_things: TagThings, pub entity_descs: EntityDescs, pub entity_types: EntityTypes, pub theme_default: ThemeDefault, pub theme_types_styles: ThemeTypesStyles, pub theme_thing_dependencies_styles: ThemeThingDependenciesStyles, pub theme_tag_things_focus: ThemeTagThingsFocus, pub css: Css,
}
Expand description

The kinds of diagrams that can be generated.

This is the root data structure for diagram input, containing all configuration for things, their relationships, processes, tags, styling, and themes.

Fields§

§things: ThingNames

Things in the diagram and their display labels.

§thing_copy_text: ThingCopyText

Text to copy to clipboard when a thing’s copy button is clicked.

This allows things to have different copy text than their display label.

§thing_hierarchy: ThingHierarchy

Hierarchy of things as a recursive tree structure.

This defines the nesting of things, which affects visual containment in the diagram.

§thing_dependencies: ThingDependencies

Dependencies between things (static relationships).

When B depends on A, it means A must exist before B. Changes to A means B is out of date.

§thing_interactions: ThingInteractions

Interactions between things (communication between applications).

Has the same structure as dependencies but represents runtime communication rather than static dependencies.

§processes: Processes

Processes are groupings of interactions between things sequenced over time.

§tags: TagNames

Tags are labels that can be associated with things, so that the things can be highlighted when the tag is focused.

§tag_things: TagThings

Things associated with each tag.

§entity_descs: EntityDescs

Descriptions to render next to entities (things, edges, edge groups).

§entity_types: EntityTypes

Additional types attached to entities for common styling.

Each entity can have multiple types, allowing styles to be stacked. These types are appended to the entity’s computed default type.

§theme_default: ThemeDefault

Default theme styles when the diagram has no user interaction.

§theme_types_styles: ThemeTypesStyles

Styles applied to things / edges of a particular type.

§theme_thing_dependencies_styles: ThemeThingDependenciesStyles

Styles when a thing is focused to show its dependencies.

§theme_tag_things_focus: ThemeTagThingsFocus

Styles when a tag is focused.

The tag_defaults key applies styles to all tags uniformly. Specific tag IDs can be used to override defaults for particular tags.

§css: Css

Additional CSS to place in the SVG’s inline <styles> section.

Implementations§

Source§

impl InputDiagram

Source

pub fn new() -> Self

Returns a new InputDiagram with default values.

Trait Implementations§

Source§

impl Clone for InputDiagram

Source§

fn clone(&self) -> InputDiagram

Returns a duplicate 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 InputDiagram

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for InputDiagram

Source§

fn default() -> InputDiagram

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for InputDiagram

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for InputDiagram

Source§

fn eq(&self, other: &InputDiagram) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for InputDiagram

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for InputDiagram

Source§

impl StructuralPartialEq for InputDiagram

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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,

Source§

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

Source§

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

Source§

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,