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: ThingNamesThings in the diagram and their display labels.
thing_copy_text: ThingCopyTextText 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: ThingHierarchyHierarchy of things as a recursive tree structure.
This defines the nesting of things, which affects visual containment in the diagram.
thing_dependencies: ThingDependenciesDependencies 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: ThingInteractionsInteractions between things (communication between applications).
Has the same structure as dependencies but represents runtime communication rather than static dependencies.
processes: ProcessesProcesses are groupings of interactions between things sequenced over time.
Tags are labels that can be associated with things, so that the things can be highlighted when the tag is focused.
tag_things: TagThingsThings associated with each tag.
entity_descs: EntityDescsDescriptions to render next to entities (things, edges, edge groups).
entity_types: EntityTypesAdditional 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: ThemeDefaultDefault theme styles when the diagram has no user interaction.
theme_types_styles: ThemeTypesStylesStyles applied to things / edges of a particular type.
theme_thing_dependencies_styles: ThemeThingDependenciesStylesStyles when a thing is focused to show its dependencies.
theme_tag_things_focus: ThemeTagThingsFocusStyles 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: CssAdditional CSS to place in the SVG’s inline <styles> section.
Implementations§
Source§impl InputDiagram
impl InputDiagram
Trait Implementations§
Source§impl Clone for InputDiagram
impl Clone for InputDiagram
Source§fn clone(&self) -> InputDiagram
fn clone(&self) -> InputDiagram
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InputDiagram
impl Debug for InputDiagram
Source§impl Default for InputDiagram
impl Default for InputDiagram
Source§fn default() -> InputDiagram
fn default() -> InputDiagram
Source§impl<'de> Deserialize<'de> for InputDiagram
impl<'de> Deserialize<'de> for InputDiagram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for InputDiagram
impl PartialEq for InputDiagram
Source§impl Serialize for InputDiagram
impl Serialize for InputDiagram
impl Eq for InputDiagram
impl StructuralPartialEq for InputDiagram
Auto Trait Implementations§
impl Freeze for InputDiagram
impl RefUnwindSafe for InputDiagram
impl Send for InputDiagram
impl Sync for InputDiagram
impl Unpin for InputDiagram
impl UnwindSafe for InputDiagram
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.