pub struct JobConfig {
pub name: String,
/* private fields */
}
Expand description
Configuration for a job
Fields§
§name: String
An arbitrary identifier used for logging
Implementations§
source§impl JobConfig
impl JobConfig
Configuration for a single woddle job
Initialized with the name and sync_key of the job.
The name is an arbitrary identifier for the job. The sync_key is a unique identifier, which is used within the database.
For a job to be valid, either the interval
, or the cron
configuration need to be set.
If neither are set, the job_runner will exit with an Error.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for JobConfig
impl Send for JobConfig
impl Sync for JobConfig
impl Unpin for JobConfig
impl UnwindSafe for JobConfig
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