/// Get collection for this model.
Get collection for this model.
Get collection for this model .
fn collection(db: Database) -> Collection {
        db.collection_with_options(
            Self::COLLECTION_NAME,
            options::CollectionOptions::builder()
                .selection_criteria(Self::selection_criteria())
                .read_concern(Self::read_concern())
                .write_concern(Self::write_concern())
                .build(),
        )
    }
fn collection ( db : Database ) -> Collection { db . collection_with_options ( Self :: COLLECTION_NAME , options :: CollectionOptions :: builder ( ) . selection_criteria ( Self :: selection_criteria ( ) ) . read_concern ( Self :: read_concern ( ) ) . write_concern ( Self :: write_concern ( ) ) . build ( ) , ) }
Get collection for this model.
Get collection for this model .
db
Database