/// Finds distinct values for given field
Finds distinct values for given field
Finds distinct values for given field
async fn distinct<F, O>(
        db: Database,
        field_name: &str,
        filter: F,
        options: O,
    ) -> Result<Vec<Bson>>
    where
        F: Into<Option<Document>> + Send,
        O: Into<Option<options::DistinctOptions>> + Send,
    {
        Ok(Self::collection(db)
            .distinct(field_name, filter, options)
            .await?)
    }
async fn distinct < F , O > ( db : Database , field_name : & str , filter : F , options : O , ) -> Result < Vec < Bson > > where F : Into < Option < Document > > + Send , O : Into < Option < options :: DistinctOptions > > + Send , { Ok ( Self :: collection ( db ) . distinct ( field_name , filter , options ) . await ? ) }
Finds distinct values for given field
Finds distinct values for given field
db
Database
field_name
&str
filter
F
options
O