Struct rtlola_input_plugins::csv_plugin::CsvRecord
source · pub struct CsvRecord(/* private fields */);
Expand description
The record as read from the csv data
Trait Implementations§
source§impl From<ByteRecord> for CsvRecord
impl From<ByteRecord> for CsvRecord
source§fn from(rec: ByteRecord) -> Self
fn from(rec: ByteRecord) -> Self
Converts to this type from the input type.
source§impl Record for CsvRecord
impl Record for CsvRecord
§type CreationData = CsvColumnMapping
type CreationData = CsvColumnMapping
Arbitrary type of the data provided at creation time to help initializing the input method.
source§fn func_for_input(
name: &str,
data: Self::CreationData,
) -> Result<ValueProjection<Self, Self::Error>, Self::Error>
fn func_for_input( name: &str, data: Self::CreationData, ) -> Result<ValueProjection<Self, Self::Error>, Self::Error>
Given the name of an input this function returns a function that given a record returns the value for that input.
Auto Trait Implementations§
impl Freeze for CsvRecord
impl RefUnwindSafe for CsvRecord
impl Send for CsvRecord
impl Sync for CsvRecord
impl Unpin for CsvRecord
impl UnwindSafe for CsvRecord
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
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