pub fn distinct(
        &self,
        field_name: impl AsRef<str>,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<DistinctOptions>>,
    ) -> Result<Vec<Bson>> {
        RUNTIME.block_on(self.async_collection.distinct(
            field_name.as_ref(),
            filter.into(),
            options.into(),
        ))
    }
/// Finds the distinct values of the field specified by `field_name` across the collection.
Finds the distinct values of the field specified by `field_name` across the collection.
Finds the distinct values of the field specified by ` field_name ` across the collection .
pub fn distinct(
        &self,
        field_name: impl AsRef<str>,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<DistinctOptions>>,
    ) -> Result<Vec<Bson>> {
        RUNTIME.block_on(self.async_collection.distinct(
            field_name.as_ref(),
            filter.into(),
            options.into(),
        ))
    }
pub fn distinct ( & self , field_name : impl AsRef < str > , filter : impl Into < Option < Document > > , options : impl Into < Option < DistinctOptions > > , ) -> Result < Vec < Bson > > { RUNTIME . block_on ( self . async_collection . distinct ( field_name . as_ref ( ) , filter . into ( ) , options . into ( ) , ) ) }
Finds the distinct values of the field specified by `field_name` across the collection.
Finds the distinct values of the field specified by ` field_name ` across the collection .
&self
field_name
impl AsRef<str>
filter
impl Into<Option<Document>>
options
impl Into<Option<DistinctOptions>>
&self
field_name
impl AsRef<str>
filter
impl Into<Option<Document>>
options
impl Into<Option<DistinctOptions>>