[−][src]Trait avocado::doc::Doc
Implemented by top-level (direct collection member) documents only.
These types always have an associated top-level name and an _id
field.
Associated Types
type Id: Eq + Serialize + for<'a> Deserialize<'a>
The type of the unique IDs for the document. A good default choice
is ObjectId
. TODO(H2CO3): make it default to ObjectId
(#29661).
Associated Constants
Loading content...Provided methods
fn indexes() -> Vec<IndexModel>
Returns the specifications of the indexes created on the collection.
If not provided, returns an empty vector, leading to the collection not
bearing any user-defined indexes. (The _id
field will still be
indexed, though, as defined by MongoDB.)
fn count_options() -> CountOptions
Options for a count-only query.
fn distinct_options() -> DistinctOptions
Options for a distinct
query.
fn aggregate_options() -> AggregateOptions
Aggregation pipeline options.
fn query_options() -> FindOptions
Options for a regular query.
fn insert_options() -> InsertManyOptions
Options for single and batch insertions.
fn delete_options() -> WriteConcern
Options for a delete operation.
fn update_options() -> WriteConcern
Options for a (strictly non-upsert) update operation.
fn upsert_options() -> WriteConcern
Options for upserting.
Implementations on Foreign Types
impl<T: Doc + ?Sized> Doc for Box<T>
[src]
impl<T: Doc + ?Sized> Doc for Box<T>
type Id = <T as Doc>::Id
const NAME: &'static str
[src]
fn indexes() -> Vec<IndexModel>
[src]
fn indexes() -> Vec<IndexModel>
fn count_options() -> CountOptions
[src]
fn count_options() -> CountOptions
fn distinct_options() -> DistinctOptions
[src]
fn distinct_options() -> DistinctOptions
fn aggregate_options() -> AggregateOptions
[src]
fn aggregate_options() -> AggregateOptions
fn query_options() -> FindOptions
[src]
fn query_options() -> FindOptions
fn insert_options() -> InsertManyOptions
[src]
fn insert_options() -> InsertManyOptions
fn delete_options() -> WriteConcern
[src]
fn delete_options() -> WriteConcern
fn update_options() -> WriteConcern
[src]
fn update_options() -> WriteConcern
fn upsert_options() -> WriteConcern
[src]
fn upsert_options() -> WriteConcern
impl<'a, T: Doc + Clone + ?Sized> Doc for Cow<'a, T>
[src]
impl<'a, T: Doc + Clone + ?Sized> Doc for Cow<'a, T>
type Id = <T as Doc>::Id
const NAME: &'static str
[src]
fn indexes() -> Vec<IndexModel>
[src]
fn indexes() -> Vec<IndexModel>
fn count_options() -> CountOptions
[src]
fn count_options() -> CountOptions
fn distinct_options() -> DistinctOptions
[src]
fn distinct_options() -> DistinctOptions
fn aggregate_options() -> AggregateOptions
[src]
fn aggregate_options() -> AggregateOptions
fn query_options() -> FindOptions
[src]
fn query_options() -> FindOptions
fn insert_options() -> InsertManyOptions
[src]
fn insert_options() -> InsertManyOptions
fn delete_options() -> WriteConcern
[src]
fn delete_options() -> WriteConcern
fn update_options() -> WriteConcern
[src]
fn update_options() -> WriteConcern
fn upsert_options() -> WriteConcern
[src]
fn upsert_options() -> WriteConcern
impl<T: Doc + Copy> Doc for Cell<T>
[src]
impl<T: Doc + Copy> Doc for Cell<T>
type Id = <T as Doc>::Id
const NAME: &'static str
[src]
fn indexes() -> Vec<IndexModel>
[src]
fn indexes() -> Vec<IndexModel>
fn count_options() -> CountOptions
[src]
fn count_options() -> CountOptions
fn distinct_options() -> DistinctOptions
[src]
fn distinct_options() -> DistinctOptions
fn aggregate_options() -> AggregateOptions
[src]
fn aggregate_options() -> AggregateOptions
fn query_options() -> FindOptions
[src]
fn query_options() -> FindOptions
fn insert_options() -> InsertManyOptions
[src]
fn insert_options() -> InsertManyOptions
fn delete_options() -> WriteConcern
[src]
fn delete_options() -> WriteConcern
fn update_options() -> WriteConcern
[src]
fn update_options() -> WriteConcern
fn upsert_options() -> WriteConcern
[src]
fn upsert_options() -> WriteConcern
impl<T: Doc + ?Sized> Doc for RefCell<T>
[src]
impl<T: Doc + ?Sized> Doc for RefCell<T>
type Id = <T as Doc>::Id
const NAME: &'static str
[src]
fn indexes() -> Vec<IndexModel>
[src]
fn indexes() -> Vec<IndexModel>
fn count_options() -> CountOptions
[src]
fn count_options() -> CountOptions
fn distinct_options() -> DistinctOptions
[src]
fn distinct_options() -> DistinctOptions
fn aggregate_options() -> AggregateOptions
[src]
fn aggregate_options() -> AggregateOptions
fn query_options() -> FindOptions
[src]
fn query_options() -> FindOptions
fn insert_options() -> InsertManyOptions
[src]
fn insert_options() -> InsertManyOptions
fn delete_options() -> WriteConcern
[src]
fn delete_options() -> WriteConcern
fn update_options() -> WriteConcern
[src]
fn update_options() -> WriteConcern
fn upsert_options() -> WriteConcern
[src]
fn upsert_options() -> WriteConcern
impl<T: Doc + ?Sized> Doc for Mutex<T>
[src]
impl<T: Doc + ?Sized> Doc for Mutex<T>
type Id = <T as Doc>::Id
const NAME: &'static str
[src]
fn indexes() -> Vec<IndexModel>
[src]
fn indexes() -> Vec<IndexModel>
fn count_options() -> CountOptions
[src]
fn count_options() -> CountOptions
fn distinct_options() -> DistinctOptions
[src]
fn distinct_options() -> DistinctOptions
fn aggregate_options() -> AggregateOptions
[src]
fn aggregate_options() -> AggregateOptions
fn query_options() -> FindOptions
[src]
fn query_options() -> FindOptions
fn insert_options() -> InsertManyOptions
[src]
fn insert_options() -> InsertManyOptions
fn delete_options() -> WriteConcern
[src]
fn delete_options() -> WriteConcern
fn update_options() -> WriteConcern
[src]
fn update_options() -> WriteConcern
fn upsert_options() -> WriteConcern
[src]
fn upsert_options() -> WriteConcern
impl<T: Doc + ?Sized> Doc for RwLock<T>
[src]
impl<T: Doc + ?Sized> Doc for RwLock<T>
type Id = <T as Doc>::Id
const NAME: &'static str
[src]
fn indexes() -> Vec<IndexModel>
[src]
fn indexes() -> Vec<IndexModel>
fn count_options() -> CountOptions
[src]
fn count_options() -> CountOptions
fn distinct_options() -> DistinctOptions
[src]
fn distinct_options() -> DistinctOptions
fn aggregate_options() -> AggregateOptions
[src]
fn aggregate_options() -> AggregateOptions
fn query_options() -> FindOptions
[src]
fn query_options() -> FindOptions
fn insert_options() -> InsertManyOptions
[src]
fn insert_options() -> InsertManyOptions
fn delete_options() -> WriteConcern
[src]
fn delete_options() -> WriteConcern
fn update_options() -> WriteConcern
[src]
fn update_options() -> WriteConcern
fn upsert_options() -> WriteConcern
[src]
fn upsert_options() -> WriteConcern