GraphExporter

Trait GraphExporter 

Source
pub trait GraphExporter {
    // Required method
    fn export(
        &self,
        graph: &DependencyGraph,
        format: ExportFormat,
        options: &ExportOptions,
    ) -> DiResult<String>;
}
Expand description

Graph exporter for generating dependency visualizations.

This trait allows different export strategies and formats while maintaining a consistent interface for graph generation.

Required Methods§

Source

fn export( &self, graph: &DependencyGraph, format: ExportFormat, options: &ExportOptions, ) -> DiResult<String>

Exports the dependency graph in the specified format.

§Arguments
  • graph - The dependency graph to export
  • format - The target export format
  • options - Export configuration options
§Returns

The exported graph as a string in the specified format.

Implementors§