Skip to main content

Exporter

Trait Exporter 

Source
pub trait Exporter: Send + Sync {
    // Required method
    fn export(
        &self,
        ws: &Workspace,
        opts: &ExportOptions,
    ) -> Result<ExportReport, ExportError>;
}
Expand description

Trait for workspace exporters. Phase 3 ships ParquetExporter; tests may swap in a stub that records calls without touching disk.

Required Methods§

Source

fn export( &self, ws: &Workspace, opts: &ExportOptions, ) -> Result<ExportReport, ExportError>

Serialise ws per opts and return an ExportReport.

§Errors

Returns ExportError when the output directory is invalid, the target file exists without --overwrite, or any underlying I/O / arrow / parquet operation fails.

Implementors§