RowLike

Trait RowLike 

Source
pub trait RowLike {
    // Required methods
    fn data(self) -> Vec<Value>;
    fn data_shared(&self) -> Vec<&Value>;
}
Expand description

Trait to retrieve data from something that looks like a row in a table.

Required Methods§

Source

fn data(self) -> Vec<Value>

Copy or move of the data contained in the row.

Whether the operation is a copy or move depends on whether the row is a reference to a row in a table or is an actual row in a table.

Source

fn data_shared(&self) -> Vec<&Value>

References to all values contained in the row.

Implementors§