Skip to main content

FileHandler

Trait FileHandler 

Source
pub trait FileHandler: DataReader + DataWriter {
    // Required methods
    fn format_name(&self) -> &'static str;
    fn supported_extensions(&self) -> &'static [&'static str];
}
Expand description

Unified trait for file handlers that can both read and write

Required Methods§

Source

fn format_name(&self) -> &'static str

Get the format name (e.g., “csv”, “xlsx”, “parquet”)

Source

fn supported_extensions(&self) -> &'static [&'static str]

Get supported file extensions

Implementors§