pub struct SortBy {
pub field: String,
pub direction: SortDirection,
}Expand description
Sort specification for list queries.
Fields§
§field: StringField name: id, collection, created_at, updated_at, version.
direction: SortDirectionSort direction.
Implementations§
Trait Implementations§
impl Eq for SortBy
impl StructuralPartialEq for SortBy
Auto Trait Implementations§
impl Freeze for SortBy
impl RefUnwindSafe for SortBy
impl Send for SortBy
impl Sync for SortBy
impl Unpin for SortBy
impl UnsafeUnpin for SortBy
impl UnwindSafe for SortBy
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