pub struct ExportData {
pub nodes: Vec<Variable>,
pub edges: Vec<ExportEdge>,
pub events: Vec<Event>,
pub metadata: ExportMetadata,
}Expand description
Complete export format optimized for visualization tools.
Fields§
§nodes: Vec<Variable>Variable nodes
edges: Vec<ExportEdge>Relationship edges
events: Vec<Event>Raw event stream
metadata: ExportMetadataSummary statistics
Implementations§
Source§impl ExportData
impl ExportData
Sourcepub fn new(graph: OwnershipGraph, events: Vec<Event>) -> Self
pub fn new(graph: OwnershipGraph, events: Vec<Event>) -> Self
Create export data from graph and events.
Sourcepub fn to_json(&self) -> BorrowScopeResult<String>
pub fn to_json(&self) -> BorrowScopeResult<String>
Serialize to JSON string
Trait Implementations§
Source§impl Debug for ExportData
impl Debug for ExportData
Auto Trait Implementations§
impl Freeze for ExportData
impl RefUnwindSafe for ExportData
impl Send for ExportData
impl Sync for ExportData
impl Unpin for ExportData
impl UnwindSafe for ExportData
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