Trait django_query::filtering::FilterableWithContext
source · [−]pub trait FilterableWithContext<'a, A: 'a>: Sized {
type Meta: Meta<'a, Self>;
fn get_meta(access: A) -> Self::Meta;
}
Available on crate feature
filter
only.Expand description
Something that can describe how to filter itself if a context type is provided.
Something implementing this trait can provide a Meta
which
describes its supported fields and their operators, but only when
a context object is provided. Note that the provided context
object may be stored within the Meta
type, which is the origin
of the lifetime parameter.
This can be derived via the
FilterableWithPersianRug
derive macro for the case of a persian-rug
type.