pub struct Checks(/* private fields */);Expand description
A set of selectable checks.
Implementations§
Source§impl Checks
impl Checks
Sourcepub fn no_confirm() -> Self
pub fn no_confirm() -> Self
omit checks which lead to user confirmation
Sourcepub fn check(
&self,
jobs: &Jobs,
pos: Option<usize>,
job: &Job,
context: &Context,
) -> Result<(), Error>
pub fn check( &self, jobs: &Jobs, pos: Option<usize>, job: &Job, context: &Context, ) -> Result<(), Error>
Check a job.
§Arguments
jobs: Reference to the database.pos: Position at which the job will be stored. This is important for modifying existing jobs.job: The job to add or modify.context: Temporal context to use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Checks
impl RefUnwindSafe for Checks
impl Send for Checks
impl Sync for Checks
impl Unpin for Checks
impl UnsafeUnpin for Checks
impl UnwindSafe for Checks
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> 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