Trait bookdata::io::DataSink

source ·
pub trait DataSink {
    // Required method
    fn output_files(&self) -> Vec<PathBuf>;

    // Provided method
    fn input_files(&self) -> Vec<PathBuf> { ... }
}
Expand description

Trait for data processing sinks with input and ouptut files.

Required Methods§

source

fn output_files(&self) -> Vec<PathBuf>

Get the output files for the sink.

Provided Methods§

source

fn input_files(&self) -> Vec<PathBuf>

Get auxillary input files for the sink.

Most sinks are also an ObjectWriter, and the primary input is written to the sink; that input file is not reported here. However, sinks may require additional input files to process, and those files can be reported here.

Implementors§