Struct tokio_postgres::row::Row
source · pub struct Row { /* private fields */ }
Expand description
A row of data returned from the database by a query.
Implementations§
source§impl Row
impl Row
sourcepub fn get<'a, I, T>(&'a self, idx: I) -> Twhere
I: RowIndex + Display,
T: FromSql<'a>,
pub fn get<'a, I, T>(&'a self, idx: I) -> Twhere 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§
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