Trait django_query::filtering::Field
source · [−]pub trait Field<R>: Clone {
type Value;
fn apply<O: Operator<Self::Value>>(&self, op: &O, data: &R) -> bool;
}
Expand description
A wrapper for one field of another type.
A Field
allows us to apply an Operator to one field of a
structure. You will normally generate implementations of Field
using the Filterable derive macro for your type. The key use of
Field is in traversing nested structures: whereas a Member
represents applying an operator to an Operable value, the value
of a Field can be arbitrary, and is often a structured type.