Struct mysql::Row[][src]

pub struct Row { /* fields omitted */ }

Client side representation of a MySql row.

It allows you to move column values out of a row with Row::take method but note that it makes row incomplete. Calls to from_row_opt on incomplete row will return Error::FromRowError and also numerical indexing on taken columns will panic.

Methods

impl Row
[src]

Returns length of a row.

Returns reference to the value of a column with index index if it exists and wasn't taken by Row::take method.

Non panicking version of row[usize].

Will copy value at index index if it was not taken by Row::take earlier, then will convert it to T.

Will copy value at index index if it was not taken by Row::take or Row::take_opt earlier, then will attempt convert it to T. Unlike Row::get, Row::get_opt will allow you to directly handle errors if the value could not be converted to T.

Will take value of a column with index index if it exists and wasn't taken earlier then will converts it to T.

Will take value of a column with index index if it exists and wasn't taken earlier then will attempt to convert it to T. Unlike Row::take, Row::take_opt will allow you to directly handle errors if the value could not be converted to T.

Important traits for Vec<u8>

Unwraps values of a row.

Panics

Panics if any of columns was taken by take method.

Trait Implementations

impl FromRow for Row
[src]

impl Clone for Row
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Row
[src]

Formats the value using the given formatter. Read more

impl Index<usize> for Row
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<'a> Index<&'a str> for Row
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl PartialEq<Row> for Row
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Row

impl Sync for Row