Struct 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.