pub enum Range {
None,
All,
Count(usize),
At(Vec<usize>),
PositionRange(usize, usize),
FromPosition(usize),
Day(Date),
TimeRange(DateTime, DateTime),
Since(DateTime),
}Expand description
Descriptor of temporal or positional range of jobs within the database.
Variants§
None
None.
All
All.
Count(usize)
Last N jobs .
At(Vec<usize>)
At given positions.
PositionRange(usize, usize)
From position to position
FromPosition(usize)
From position to the end.
Day(Date)
All at a specified day
TimeRange(DateTime, DateTime)
All jobs overlapping the given time range.
Since(DateTime)
All jobs which overlap the time since a specified time.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Range
Auto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnsafeUnpin for Range
impl UnwindSafe for Range
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<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