Trait django_query::ordering::Sortable
source · [−]pub trait Sortable {
fn accept_visitor<V: SortVisitor<Target = Self>>(visitor: &mut V)
where
Self: Sized;
}
Expand description
Something that can be sorted.
This is the central trait of this module. It has a derive macro which will automatically create all necessary supporting types using the markup on the type.
Required methods
fn accept_visitor<V: SortVisitor<Target = Self>>(visitor: &mut V) where
Self: Sized,
fn accept_visitor<V: SortVisitor<Target = Self>>(visitor: &mut V) where
Self: Sized,
visitor
will receive a callback for each sort that is
defined for this type.