[−][src]Struct couch_rs::document::DocumentCollection
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: u32
bookmark: 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]
docs: Vec<Document>,
bookmark: Option<String>
) -> DocumentCollection
pub fn get_data(&self) -> Vec<Value>
[src]
Returns raw JSON data from documents
Trait Implementations
impl Clone for DocumentCollection
[src]
fn clone(&self) -> DocumentCollection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DocumentCollection
[src]
impl Default for DocumentCollection
[src]
fn default() -> DocumentCollection
[src]
impl<'de> Deserialize<'de> for DocumentCollection
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Index<usize> for DocumentCollection
[src]
type Output = DocumentCollectionItem
The returned type after indexing.
fn index(&self, index: usize) -> &DocumentCollectionItem
[src]
impl IndexMut<usize> for DocumentCollection
[src]
fn index_mut(&mut self, index: usize) -> &mut DocumentCollectionItem
[src]
impl PartialEq<DocumentCollection> for DocumentCollection
[src]
fn eq(&self, other: &DocumentCollection) -> bool
[src]
fn ne(&self, other: &DocumentCollection) -> bool
[src]
impl Serialize for DocumentCollection
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for DocumentCollection
[src]
Auto Trait Implementations
impl RefUnwindSafe for DocumentCollection
impl Send for DocumentCollection
impl Sync for DocumentCollection
impl Unpin for DocumentCollection
impl UnwindSafe for DocumentCollection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,