pub struct ScheduledJob {
pub id: String,
pub task: Arc<Task>,
pub trigger: Arc<dyn Trigger>,
pub next_execution: Option<SystemTime>,
pub enabled: bool,
pub created_at: SystemTime,
pub last_execution: Option<SystemTime>,
}
Expand description
Scheduled job containing task and trigger
Fields§
§id: String
§task: Arc<Task>
§trigger: Arc<dyn Trigger>
§next_execution: Option<SystemTime>
§enabled: bool
§created_at: SystemTime
§last_execution: Option<SystemTime>
Implementations§
Source§impl ScheduledJob
impl ScheduledJob
Trait Implementations§
Source§impl Clone for ScheduledJob
impl Clone for ScheduledJob
Source§fn clone(&self) -> ScheduledJob
fn clone(&self) -> ScheduledJob
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ScheduledJob
impl !RefUnwindSafe for ScheduledJob
impl Send for ScheduledJob
impl Sync for ScheduledJob
impl Unpin for ScheduledJob
impl !UnwindSafe for ScheduledJob
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