Struct rustorm_dao::Rows[][src]

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

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<usize>

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

Implementations

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]

impl Debug for Rows[src]

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

impl PartialEq<Rows> for Rows[src]

impl Serialize for Rows[src]

impl StructuralPartialEq for Rows[src]

Auto Trait Implementations

impl RefUnwindSafe for Rows

impl Send for Rows

impl Sync for Rows

impl Unpin for Rows

impl UnwindSafe for Rows

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.