MongoCollection

Trait MongoCollection 

Source
pub trait MongoCollection {
    const COLLECTION: &'static str;

    // Provided method
    fn mongo_collection<T>(db: &Database) -> Collection<T>
       where T: Send + Sync { ... }
}

Required Associated Constants§

Source

const COLLECTION: &'static str

Provided Methods§

Source

fn mongo_collection<T>(db: &Database) -> Collection<T>
where T: Send + Sync,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§