find

Function find 

Source
pub async fn find<T>(
    filter_document: impl Into<Option<Document>>,
    options: impl Into<Option<FindOptions>>,
    collection_name: &str,
    db: &Database,
) -> Result<Vec<T>, Error>
where for<'a> T: DeserializeOwned + Unpin + Send + Sync,