pub trait Queryable {
// Required method
fn matches(&self, doc: &Document) -> bool;
}Expand description
Trait for objects that can filter documents.
This trait is implemented for closures that take a reference to a
FilterBuilder and return a boolean, allowing for a natural filter syntax.