pub enum JobListOrderBy {
FinalizedAt,
Id,
ScheduledAt,
Time,
}Expand description
Field used for stable job-list ordering.
Variants§
FinalizedAt
Finalization time followed by ID.
Id
Database ID only.
ScheduledAt
Scheduled time followed by ID.
Time
State-appropriate time followed by ID.
The time field is chosen by the first state given to
JobListParams::states, and jobs in every listed state are ordered
by that field:
available,pending,retryable, andscheduledusescheduled_at.runningusesattempted_at.cancelled,completed, anddiscardedusefinalized_at.
Without a state filter, jobs are ordered by scheduled_at. Jobs whose
field is null, like finalized_at for jobs that haven’t finalized,
come after all others in ascending order and before all others in
descending order.
Implementations§
Trait Implementations§
Source§impl Clone for JobListOrderBy
impl Clone for JobListOrderBy
impl Copy for JobListOrderBy
Source§impl Debug for JobListOrderBy
impl Debug for JobListOrderBy
Source§impl Default for JobListOrderBy
impl Default for JobListOrderBy
Source§impl Display for JobListOrderBy
impl Display for JobListOrderBy
impl Eq for JobListOrderBy
Source§impl FromStr for JobListOrderBy
impl FromStr for JobListOrderBy
Source§impl PartialEq for JobListOrderBy
impl PartialEq for JobListOrderBy
impl StructuralPartialEq for JobListOrderBy
Auto Trait Implementations§
impl Freeze for JobListOrderBy
impl RefUnwindSafe for JobListOrderBy
impl Send for JobListOrderBy
impl Sync for JobListOrderBy
impl Unpin for JobListOrderBy
impl UnsafeUnpin for JobListOrderBy
impl UnwindSafe for JobListOrderBy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more