Trait mongodm::CollectionConfig [−][src]
pub trait CollectionConfig { fn collection_name() -> &'static str; fn collection_options() -> Option<CollectionOptions> { ... } fn indexes() -> Indexes { ... } }
Expand description
Define collection name, configuration and associated indexes.
Required methods
fn collection_name() -> &'static str
[src]
fn collection_name() -> &'static str
[src]Collection name to use when creating a mongodb::Collection
instance.
Provided methods
mongodb::options::CollectionOptions
to be used when creating a mongodb::Collection
instance.
This method has a default implementation returning None
.
In such case configuration is defined by the mongodb::Database
used on Repository
creation.