pub struct JobView {Show 14 fields
pub name: String,
pub schedule: String,
pub enabled: bool,
pub prompt: String,
pub route: Option<String>,
pub workdir: Option<String>,
pub skills: Vec<String>,
pub deliver: Option<String>,
pub schema: Option<String>,
pub next_ms: Option<i64>,
pub last_started_ms: Option<i64>,
pub last_finished_ms: Option<i64>,
pub last_outcome: Option<String>,
pub runs: u64,
}Expand description
One job, plus what has run and when it fires next.
This is the shape cron list --json prints and the dashboard renders. It is deliberately not
the file’s shape: the store’s keys ([[job]] in TOML) stay where they are so a field renamed
for a page cannot move a key in a file somebody wrote by hand.
Fields§
§name: String§schedule: StringAs Schedule::parse accepts it back — the same string an editor shows and submits, so a
page never has to know that hourly and every 1h are one schedule.
enabled: bool§prompt: String§route: Option<String>§workdir: Option<String>§skills: Vec<String>§deliver: Option<String>§schema: Option<String>§next_ms: Option<i64>The next fire, or None for a disabled job.
last_started_ms: Option<i64>§last_finished_ms: Option<i64>§last_outcome: Option<String>ok, failed, or the first line of what went wrong.
runs: u64Trait Implementations§
impl Eq for JobView
impl StructuralPartialEq for JobView
Auto Trait Implementations§
impl Forget for JobView
impl Freeze for JobView
impl Move for JobView
impl RefUnwindSafe for JobView
impl Send for JobViewwhere
RawVecInner: Send,
impl Sync for JobViewwhere
RawVecInner: Sync,
impl Unpin for JobView
impl UnsafeUnpin for JobViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for JobViewwhere
RawVecInner: UnwindSafe,
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§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.