pub struct SortKey {
pub attribute: String,
pub direction: SortDirection,
}Expand description
One key of a Query’s sort order: an attribute name and a direction.
Fields§
§attribute: StringThe attribute to sort by. The domain checks it is declared on the resource before the layer sees the query.
direction: SortDirectionWhich way to sort it.
Implementations§
Trait Implementations§
impl Eq for SortKey
impl StructuralPartialEq for SortKey
Auto Trait Implementations§
impl Forget for SortKey
impl Freeze for SortKey
impl Move for SortKey
impl RefUnwindSafe for SortKey
impl Send for SortKey
impl Sync for SortKey
impl Unpin for SortKey
impl UnsafeUnpin for SortKey
impl UnwindSafe for SortKey
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