pub struct ReaderSource { /* private fields */ }
Expand description
Represents a file as source of CSV data.
Most of the time you won’t need to deal with this struct, except when you need to customize the CSV options.
Implementations§
Source§impl ReaderSource
A source of data. Wraps a csv::Reader<File>
.
impl ReaderSource
A source of data. Wraps a csv::Reader<File>
.
You might not ever need to build one of this objects yourself since most of
the time they’re built for you inside InputStream
constructors.
Sourcepub fn from_reader<P: AsRef<Path>>(
reader: Reader<File>,
path: P,
) -> ReaderSource
pub fn from_reader<P: AsRef<Path>>( reader: Reader<File>, path: P, ) -> ReaderSource
Build a ReaderSource from a csv::Reader<File>
and a path.
the path
is added to every record as a virtual column with name
_source
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReaderSource
impl RefUnwindSafe for ReaderSource
impl Send for ReaderSource
impl Sync for ReaderSource
impl Unpin for ReaderSource
impl UnwindSafe for ReaderSource
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