Struct tokio_postgres::row::SimpleQueryRow [−][src]
pub struct SimpleQueryRow { /* fields omitted */ }
A row of data returned from the database by a simple query.
Implementations
impl SimpleQueryRow
[src]
impl SimpleQueryRow
[src]pub fn is_empty(&self) -> bool
[src]
Determines if the row contains no values.
pub fn len(&self) -> usize
[src]
Returns the number of values in the row.
pub fn get<I>(&self, idx: I) -> Option<&str> where
I: RowIndex + Display,
[src]
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.
pub fn try_get<I>(&self, idx: I) -> Result<Option<&str>, Error> where
I: RowIndex + Display,
[src]
I: RowIndex + Display,
Like SimpleQueryRow::get
, but returns a Result
rather than panicking.
Auto Trait Implementations
impl RefUnwindSafe for SimpleQueryRow
impl RefUnwindSafe for SimpleQueryRow
impl Send for SimpleQueryRow
impl Send for SimpleQueryRow
impl Sync for SimpleQueryRow
impl Sync for SimpleQueryRow
impl Unpin for SimpleQueryRow
impl Unpin for SimpleQueryRow
impl UnwindSafe for SimpleQueryRow
impl UnwindSafe for SimpleQueryRow