pub struct RowView { /* private fields */ }Expand description
A typed view over one parsed spreadsheet row.
Implementations§
Source§impl RowView
impl RowView
pub fn row_number(&self) -> usize
pub fn get(&self, field: &str) -> Option<&CellValue>
pub fn get_by_header(&self, header: &str) -> Option<&CellValue>
pub fn required_string(&self, field: &str) -> Result<String, ExcelError>
pub fn optional_string(&self, field: &str) -> Result<Option<String>, ExcelError>
pub fn required_i64(&self, field: &str) -> Result<i64, ExcelError>
pub fn optional_i64(&self, field: &str) -> Result<Option<i64>, ExcelError>
pub fn required_f64(&self, field: &str) -> Result<f64, ExcelError>
pub fn optional_f64(&self, field: &str) -> Result<Option<f64>, ExcelError>
pub fn required_bool(&self, field: &str) -> Result<bool, ExcelError>
pub fn optional_bool(&self, field: &str) -> Result<Option<bool>, ExcelError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowView
impl RefUnwindSafe for RowView
impl Send for RowView
impl Sync for RowView
impl Unpin for RowView
impl UnsafeUnpin for RowView
impl UnwindSafe for RowView
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