Struct rustorm::Rows [−][src]
use this to store data retrieved from the database
This is also slimmer than Vec
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]
impl Rows
pub fn empty() -> Rows
[src]
pub fn empty() -> Rows
pub fn new(columns: Vec<String>) -> Rows
[src]
pub fn new(columns: Vec<String>) -> Rows
pub fn push(&mut self, row: Vec<Value>)
[src]
pub fn push(&mut self, row: Vec<Value>)
pub fn iter(&'a self) -> Iter<'a>
[src]
pub fn iter(&'a self) -> Iter<'a>
Returns an iterator over the Row
s.
Trait Implementations
impl<'de> Deserialize<'de> for Rows
[src]
impl<'de> Deserialize<'de> for Rows
fn deserialize<__D>(
__deserializer: __D
) -> Result<Rows, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Rows, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Rows
[src]
impl Serialize for Rows
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Clone for Rows
[src]
impl Clone for Rows
fn clone(&self) -> Rows
[src]
fn clone(&self) -> Rows
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Rows
[src]
impl Debug for Rows
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a> IntoIterator for &'a Rows
[src]
impl<'a> IntoIterator for &'a Rows