/// Get number of documents matching filter for current Collection
Get number of documents matching filter for current Collection
Get number of documents matching filter for current Collection
async fn count<F, O>(db: Database, filter: F, options: O) -> Result<i64>
    where
        F: Into<Option<Document>> + Send,
        O: Into<Option<options::CountOptions>> + Send,
    {
        Ok(Self::collection(db)
            .count_documents(filter, options)
            .await?)
    }
async fn count < F , O > ( db : Database , filter : F , options : O ) -> Result < i64 > where F : Into < Option < Document > > + Send , O : Into < Option < options :: CountOptions > > + Send , { Ok ( Self :: collection ( db ) . count_documents ( filter , options ) . await ? ) }
Get number of documents matching filter for current Collection
Get number of documents matching filter for current Collection
db
Database
filter
F
options
O