Struct dao::Rows
[−]
[src]
pub struct Rows { pub columns: Vec<String>, pub data: Vec<Vec<Value>>, }
use this to store data retrieved from the database
This is also slimmer than Vec
Fields
columns: Vec<String>
data: Vec<Vec<Value>>
Methods
impl Rows
[src]
pub fn new(columns: Vec<String>) -> Self
[src]
pub fn push(&mut self, row: Vec<Value>)
[src]
pub fn iter<'a>(&'a self) -> Iter<'a>
[src]
Returns an iterator over the Row
s.
Trait Implementations
impl Debug for Rows
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Rows
[src]
fn clone(&self) -> Rows
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more