pub struct SortKey {
pub column: String,
pub direction: Direction,
pub nulls: NullsOrder,
}Expand description
A single sort key (column + direction)
Fields§
§column: StringColumn name to sort by
direction: DirectionSort direction
nulls: NullsOrderNull handling
Implementations§
Source§impl SortKey
impl SortKey
Sourcepub fn nulls_first(self) -> Self
pub fn nulls_first(self) -> Self
Set nulls to appear first
Sourcepub fn nulls_last(self) -> Self
pub fn nulls_last(self) -> Self
Set nulls to appear last
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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