Struct db_helpers::Row
source · [−]pub struct Row { /* private fields */ }
Expand description
A row of data returned from the database by a query.
Implementations
sourceimpl Row
impl Row
sourcepub fn get<'a, I, T>(&'a self, idx: I) -> T where
I: RowIndex + Display,
T: FromSql<'a>,
pub fn get<'a, I, T>(&'a self, idx: I) -> T where
I: RowIndex + Display,
T: FromSql<'a>,
Deserializes a value from the row.
The value can be specified either by its numeric index in the row, or by its column name.
Panics
Panics if the index is out of bounds or if the value cannot be converted to the specified type.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl !UnwindSafe for Row
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more