Is it possible to write statically typed filters? (e.g. similar to what diesel has or something else), and if not, is there any plans for them?
#[derive(Debug, Serialize, Deserialize, Doc, Clone)]
pub struct Example {
#[serde(rename = "_id")]
pub id: Uid<Example>,
pub description: String,
}
...
let example_col: Collection<Example> = shared.db.existing_collection();
let res: Example = example_col.find_one(Example::description.eq("abc"));
Is it possible to write statically typed filters? (e.g. similar to what
dieselhas or something else), and if not, is there any plans for them?Something like: