pub trait DataWriter: Send + Sync {
// Required methods
fn write(
&self,
path: &str,
data: &[Vec<String>],
options: DataWriteOptions,
) -> Result<()>;
fn write_range(
&self,
path: &str,
data: &[Vec<String>],
start_row: usize,
start_col: usize,
) -> Result<()>;
fn append(&self, path: &str, data: &[Vec<String>]) -> Result<()>;
fn supports_format(&self, path: &str) -> bool;
}Expand description
Trait for writing data to files
Required Methods§
Sourcefn write(
&self,
path: &str,
data: &[Vec<String>],
options: DataWriteOptions,
) -> Result<()>
fn write( &self, path: &str, data: &[Vec<String>], options: DataWriteOptions, ) -> Result<()>
Write data to a file
Sourcefn write_range(
&self,
path: &str,
data: &[Vec<String>],
start_row: usize,
start_col: usize,
) -> Result<()>
fn write_range( &self, path: &str, data: &[Vec<String>], start_row: usize, start_col: usize, ) -> Result<()>
Write data to a specific cell range
Sourcefn append(&self, path: &str, data: &[Vec<String>]) -> Result<()>
fn append(&self, path: &str, data: &[Vec<String>]) -> Result<()>
Append data to an existing file
Sourcefn supports_format(&self, path: &str) -> bool
fn supports_format(&self, path: &str) -> bool
Check if the file format is supported