collection

Function collection 

Source
pub async fn collection<T: Indexed>(
    db: &Database,
    should_create_index: bool,
) -> Result<Collection<T>, Error>