Struct tokio_postgres::rows::Row [] [src]

pub struct Row { /* fields omitted */ }

A row from Postgres.

Methods

impl Row
[src]

Returns information about the columns in the row.

Returns the number of values in the row

Retrieves the contents of a field of the row.

A field can be accessed by the name or index of its column, though access by index is more efficient. Rows are 0-indexed.

Panics

Panics if the index does not reference a column or the return type is not compatible with the Postgres type.

Retrieves the contents of a field of the row.

A field can be accessed by the name or index of its column, though access by index is more efficient. Rows are 0-indexed.

Returns None if the index does not reference a column, Some(Err(..)) if there was an error converting the result value, and Some(Ok(..)) on success.