pub enum NullOrder {
First,
Last,
}Expand description
Where NULLs sort relative to non-NULL values. PostgreSQL’s default is
NULLS LAST for ASC and NULLS FIRST for DESC; SQLite’s default
is NULLS FIRST for both. CrateStack pins the framework default to
NULLS LAST so listings stay deterministic across backends and so
soft-deleted rows (typed Option<DateTime> that surface as None
for visible rows) don’t muscle their way to the top of every listing.
Override per-clause via OrderClause::nulls_first when scheduler /
outbox queries want fresh-as-null tasks at the head of the queue.
Variants§
Trait Implementations§
impl Copy for NullOrder
impl Eq for NullOrder
impl StructuralPartialEq for NullOrder
Auto Trait Implementations§
impl Freeze for NullOrder
impl RefUnwindSafe for NullOrder
impl Send for NullOrder
impl Sync for NullOrder
impl Unpin for NullOrder
impl UnsafeUnpin for NullOrder
impl UnwindSafe for NullOrder
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