[][src]Trait avocado::ops::Count

pub trait Count<T: Doc>: Debug {
    fn filter(&self) -> Document { ... }
fn options() -> CountOptions { ... } }

A counting-only query.

Provided methods

fn filter(&self) -> Document

Filter for this query. Defaults to an empty filter, yielding the number of all documents in the collection.

fn options() -> CountOptions

Options for this query.

Loading content...

Implementations on Foreign Types

impl<T: Doc, Q: Count<T>, '_> Count<T> for &'_ Q
[src]

Loading content...

Implementors

impl<T: Doc> Count<T> for Document
[src]

Loading content...