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§
Sourcefn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
Get the format name (e.g., “csv”, “xlsx”, “parquet”)
Sourcefn supported_extensions(&self) -> &'static [&'static str]
fn supported_extensions(&self) -> &'static [&'static str]
Get supported file extensions