pub struct ProxyCsvRowReader { /* private fields */ }Available on crate feature
csv only.Expand description
A CSV Reader that can be used to create a Proxy database from a CSV file or raw data.
Implementations§
Source§impl ProxyCsvRowReader
impl ProxyCsvRowReader
Sourcepub async fn open(
path: impl AsRef<Path>,
) -> Result<Self, ProxyCsvRowReaderError>
pub async fn open( path: impl AsRef<Path>, ) -> Result<Self, ProxyCsvRowReaderError>
Create a new ProxyCsvRowReader from the given CSV file.
Sourcepub fn raw(data: impl AsRef<str>) -> Self
pub fn raw(data: impl AsRef<str>) -> Self
Create a new ProxyCsvRowReader from the given CSV data.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ProxyCsvRowReader
impl !RefUnwindSafe for ProxyCsvRowReader
impl Send for ProxyCsvRowReader
impl Sync for ProxyCsvRowReader
impl Unpin for ProxyCsvRowReader
impl UnsafeUnpin for ProxyCsvRowReader
impl UnwindSafe for ProxyCsvRowReader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more