[−][src]Trait mongodm::Model
Define collection configuration and associated indexes. Model
can't be made into a trait object.
Required methods
Loading content...Provided methods
fn coll_options() -> Option<CollectionOptions>
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 DatabaseConfig::db_options
.
fn indexes() -> Indexes
Configure how indexes should be created and synchronized for the associated collection.