Trait mongodm::ToRepository[][src]

pub trait ToRepository {
    fn repository<M: Model>(&self) -> Repository<M>;
fn repository_with_options<M: Model>(
        &self,
        options: CollectionOptions
    ) -> Repository<M>; }
Expand description

Utilities methods to get a Repository. Implemented for mongodb::Database.

Required methods

Shorthand for Repository::<Model>::new.

Shorthand for Repository::<Model>::new_with_options.

Implementations on Foreign Types

Implementors