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.