#[non_exhaustive]pub struct RowError {
pub row: usize,
pub column: Option<String>,
pub message: String,
pub columns: Vec<String>,
}Expand description
A row of a tabular result that didn’t fit the type it was read into.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.row: usizeThe row, counted from 0.
column: Option<String>The column that didn’t fit, if one did: a nested field’s is dotted
(author.name).
message: StringWhat didn’t fit, such as missing field price``.
columns: Vec<String>The result’s columns.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowError
impl RefUnwindSafe for RowError
impl Send for RowError
impl Sync for RowError
impl Unpin for RowError
impl UnsafeUnpin for RowError
impl UnwindSafe for RowError
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