Struct sofa::DocumentCollection[][src]

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

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

Methods

impl DocumentCollection
[src]

Returns raw JSON data from documents

Trait Implementations

impl Default for DocumentCollection
[src]

Returns the "default value" for a type. Read more

impl PartialEq for DocumentCollection
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for DocumentCollection
[src]

Formats the value using the given formatter. Read more

impl Clone for DocumentCollection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Index<usize> for DocumentCollection
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl IndexMut<usize> for DocumentCollection
[src]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations