Struct jortestkit::csv::CsvFileBuilder
source · pub struct CsvFileBuilder {
file: PathBuf,
header: Vec<String>,
content: Vec<Vec<String>>,
}
Fields§
§file: PathBuf
§header: Vec<String>
§content: Vec<Vec<String>>
Implementations§
source§impl CsvFileBuilder
impl CsvFileBuilder
pub fn from_path<P: AsRef<Path>>(path: P) -> Self
pub fn with_header(&mut self, header: Vec<&str>) -> &mut Self
pub fn with_content_line(&mut self, line: Vec<String>) -> &mut Self
pub fn with_contents(&mut self, content: Vec<Vec<String>>) -> &mut Self
pub fn build(&self) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl RefUnwindSafe for CsvFileBuilder
impl Send for CsvFileBuilder
impl Sync for CsvFileBuilder
impl Unpin for CsvFileBuilder
impl UnwindSafe for CsvFileBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more