Struct tokio_postgres::row::SimpleQueryRow
source · pub struct SimpleQueryRow { /* private fields */ }
Expand description
A row of data returned from the database by a simple query.
Implementations§
source§impl SimpleQueryRow
impl SimpleQueryRow
sourcepub fn columns(&self) -> &[SimpleColumn]
pub fn columns(&self) -> &[SimpleColumn]
Returns information about the columns of data in the row.
sourcepub fn get<I>(&self, idx: I) -> Option<&str>where
I: RowIndex + Display,
pub fn get<I>(&self, idx: I) -> Option<&str>where I: RowIndex + Display,
Returns 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 SimpleQueryRow
impl Send for SimpleQueryRow
impl Sync for SimpleQueryRow
impl Unpin for SimpleQueryRow
impl UnwindSafe for SimpleQueryRow
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