pub struct Sort {
pub key: SortKey,
pub descending: bool,
}Expand description
How a result is ordered.
A query with no order is a query whose second page means nothing: paging is only meaningful while the order is the same on every run. Catalog order is the default because it is deterministic; everything else is asked for.
Fields§
§key: SortKeyWhat to order on.
descending: booltrue to put the largest, latest or highest first.
Implementations§
Trait Implementations§
impl Copy for Sort
impl Eq for Sort
impl StructuralPartialEq for Sort
Auto Trait Implementations§
impl Freeze for Sort
impl RefUnwindSafe for Sort
impl Send for Sort
impl Sync for Sort
impl Unpin for Sort
impl UnwindSafe for Sort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more