/// Finds a single document in the collection matching `filter`.
Finds a single document in the collection matching `filter`.
Finds a single document in the collection matching ` filter ` .
pub fn find_one(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOneOptions>>,
    ) -> Result<Option<T>> {
        RUNTIME.block_on(
            self.async_collection
                .find_one(filter.into(), options.into()),
        )
    }
pub fn find_one ( & self , filter : impl Into < Option < Document > > , options : impl Into < Option < FindOneOptions > > , ) -> Result < Option < T > > { RUNTIME . block_on ( self . async_collection . find_one ( filter . into ( ) , options . into ( ) ) , ) }
Finds a single document in the collection matching `filter`.
Finds a single document in the collection matching ` filter ` .
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOneOptions>>