[][src]Struct couch_rs::document::DocumentCollection

pub struct DocumentCollection {
    pub offset: Option<u32>,
    pub rows: Vec<DocumentCollectionItem>,
    pub total_rows: u32,
    pub bookmark: Option<String>,
}

Memory-optimized, iterable document collection, mostly returned in calls that involve multiple documents results Can target a specific index through implementation of Index and IndexMut

Fields

offset: Option<u32>rows: Vec<DocumentCollectionItem>total_rows: u32bookmark: Option<String>

Implementations

impl DocumentCollection[src]

pub fn new(doc: Value) -> DocumentCollection[src]

pub fn new_from_documents(
    docs: Vec<Document>,
    bookmark: Option<String>
) -> DocumentCollection
[src]

pub fn get_data(&self) -> Vec<Value>[src]

Returns raw JSON data from documents

Trait Implementations

impl Clone for DocumentCollection[src]

impl Debug for DocumentCollection[src]

impl Default for DocumentCollection[src]

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

impl Index<usize> for DocumentCollection[src]

type Output = DocumentCollectionItem

The returned type after indexing.

impl IndexMut<usize> for DocumentCollection[src]

impl PartialEq<DocumentCollection> for DocumentCollection[src]

impl Serialize for DocumentCollection[src]

impl StructuralPartialEq for DocumentCollection[src]

Auto Trait Implementations

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> Sealed<T> for T where
    T: ?Sized

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.