[][src]Struct rustorm_dao::Rows

pub struct Rows {
    pub columns: Vec<String>,
    pub data: Vec<Vec<Value>>,
    pub count: Option<u64>,
}

use this to store data retrieved from the database This is also slimmer than Vec when serialized

Fields

columns: Vec<String>data: Vec<Vec<Value>>count: Option<u64>

can be optionally set, indicates how many total rows are there in the table

Methods

impl Rows[src]

pub fn empty() -> Self[src]

pub fn new(columns: Vec<String>) -> Self[src]

pub fn push(&mut self, row: Vec<Value>)[src]

pub fn iter(&self) -> Iter[src]

Returns an iterator over the Rows.

Trait Implementations

impl Clone for Rows[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Rows[src]

impl Serialize for Rows[src]

impl<'de> Deserialize<'de> for Rows[src]

Auto Trait Implementations

impl Send for Rows

impl Sync for Rows

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]