pub struct RawDiagram {
pub diagram: DiagramHeader,
pub layers: Vec<Layer>,
pub legend: Vec<LegendEntry>,
pub edges: Vec<Edge>,
}Expand description
The raw, unchecked deserialization target for a diagram YAML/JSON file.
Serde populates this directly. Use Diagram::try_from to validate
invariants and produce a checked Diagram.
Fields§
§diagram: DiagramHeaderDiagram metadata.
layers: Vec<Layer>Ordered visual layers.
legend: Vec<LegendEntry>Legend entries.
edges: Vec<Edge>Semantic edges.
Trait Implementations§
Source§impl Clone for RawDiagram
impl Clone for RawDiagram
Source§fn clone(&self) -> RawDiagram
fn clone(&self) -> RawDiagram
Returns a duplicate 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 RawDiagram
impl Debug for RawDiagram
Source§impl<'de> Deserialize<'de> for RawDiagram
impl<'de> Deserialize<'de> for RawDiagram
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RawDiagram
impl PartialEq for RawDiagram
Source§impl Serialize for RawDiagram
impl Serialize for RawDiagram
Source§impl TryFrom<RawDiagram> for Diagram
impl TryFrom<RawDiagram> for Diagram
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
impl StructuralPartialEq for RawDiagram
Auto Trait Implementations§
impl Freeze for RawDiagram
impl RefUnwindSafe for RawDiagram
impl Send for RawDiagram
impl Sync for RawDiagram
impl Unpin for RawDiagram
impl UnsafeUnpin for RawDiagram
impl UnwindSafe for RawDiagram
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