Macro aragog::compare [−][src]
Macro to simplify the Comparison
construction:
Examples
#[macro_use] extern crate aragog; // The following are equivalent: let comparison = Comparison::field("field_name"); let comparison = compare!(field "field_name"); // The following are equivalent: let comparison = Comparison::all("field_name"); let comparison = compare!(all "field_name"); // The following are equivalent: let comparison = Comparison::any("field_name"); let comparison = compare!(any "field_name"); // The following are equivalent: let comparison = Comparison::none("field_name"); let comparison = compare!(none "field_name"); // The following are equivalent: let comparison = Comparison::statement("statement"); let comparison = compare!("statement");