pub struct Row { /* private fields */ }Expand description
A single row from a CSV file.
Wraps a csv::StringRecord with accessor methods.
All fields are private per CLAUDE.md.
Implementations§
Source§impl Row
impl Row
Sourcepub fn deserialize<'de, T: Deserialize<'de>>(
&'de self,
headers: Option<&'de StringRecord>,
) -> Result<T, CsvError>
pub fn deserialize<'de, T: Deserialize<'de>>( &'de self, headers: Option<&'de StringRecord>, ) -> Result<T, CsvError>
Deserialize this row into a typed value.
Requires that the type implements serde::Deserialize and
that headers have been provided.
§Errors
Returns CsvError::Deserialize if the record cannot be
deserialized into the target type.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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