pub struct GraphSummary {
pub node_count: usize,
pub edge_count: usize,
pub entry_nodes: Vec<String>,
pub terminal_nodes: Vec<String>,
}Expand description
A successful validation’s summary of the graph’s shape.
Entry nodes have no inbound edge; terminal nodes have no outbound edge. Both lists are sorted, so the CLI output is deterministic.
Fields§
§node_count: usizeNumber of nodes in the document.
edge_count: usizeNumber of edges in the document.
entry_nodes: Vec<String>Ids of nodes with no inbound edge, sorted.
terminal_nodes: Vec<String>Ids of nodes with no outbound edge, sorted.
Trait Implementations§
Source§impl Clone for GraphSummary
impl Clone for GraphSummary
Source§fn clone(&self) -> GraphSummary
fn clone(&self) -> GraphSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GraphSummary
impl Debug for GraphSummary
impl Eq for GraphSummary
Source§impl PartialEq for GraphSummary
impl PartialEq for GraphSummary
impl StructuralPartialEq for GraphSummary
Auto Trait Implementations§
impl Freeze for GraphSummary
impl RefUnwindSafe for GraphSummary
impl Send for GraphSummary
impl Sync for GraphSummary
impl Unpin for GraphSummary
impl UnsafeUnpin for GraphSummary
impl UnwindSafe for GraphSummary
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