pub struct RustGraphExporter { /* private fields */ }Expand description
RustGraph JSON exporter.
Implementations§
Source§impl RustGraphExporter
impl RustGraphExporter
Sourcepub fn new(config: RustGraphExportConfig) -> Self
pub fn new(config: RustGraphExportConfig) -> Self
Creates a new RustGraph exporter with the given configuration.
Sourcepub fn export(
&self,
graph: &Graph,
output_dir: &Path,
) -> Result<RustGraphMetadata>
pub fn export( &self, graph: &Graph, output_dir: &Path, ) -> Result<RustGraphMetadata>
Exports a graph to RustGraph JSON format.
Sourcepub fn convert_node(
&self,
node: &GraphNode,
generated_at: DateTime<Utc>,
) -> RustGraphNodeOutput
pub fn convert_node( &self, node: &GraphNode, generated_at: DateTime<Utc>, ) -> RustGraphNodeOutput
Converts a GraphNode to RustGraphNodeOutput.
Sourcepub fn convert_edge(
&self,
edge: &GraphEdge,
generated_at: DateTime<Utc>,
) -> RustGraphEdgeOutput
pub fn convert_edge( &self, edge: &GraphEdge, generated_at: DateTime<Utc>, ) -> RustGraphEdgeOutput
Converts a GraphEdge to RustGraphEdgeOutput.
Sourcepub fn export_to_writer<W: Write>(
&self,
graph: &Graph,
writer: &mut W,
) -> Result<RustGraphMetadata>
pub fn export_to_writer<W: Write>( &self, graph: &Graph, writer: &mut W, ) -> Result<RustGraphMetadata>
Exports a graph to a writer (for streaming export).
Auto Trait Implementations§
impl Freeze for RustGraphExporter
impl RefUnwindSafe for RustGraphExporter
impl Send for RustGraphExporter
impl Sync for RustGraphExporter
impl Unpin for RustGraphExporter
impl UnwindSafe for RustGraphExporter
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