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