pub struct RoutineView {
pub routine: Routine,
pub schedule: Vec<String>,
pub next_run: Option<i64>,
pub runs_per_month: Option<u32>,
pub last_run: Option<RunRecord>,
}Expand description
One routine as clients see it.
Fields§
§routine: Routine§schedule: Vec<String>Its schedules in words (Every day at 8:00 AM), one per schedule trigger; a schedule
the engine can’t read says why.
next_run: Option<i64>When it’s next due (ms since the epoch), if it’s enabled and scheduled.
runs_per_month: Option<u32>About how many scheduled runs a month.
last_run: Option<RunRecord>Its latest run.
Trait Implementations§
Source§impl Clone for RoutineView
impl Clone for RoutineView
Source§impl Debug for RoutineView
impl Debug for RoutineView
Source§impl Default for RoutineView
impl Default for RoutineView
Source§impl<'de> Deserialize<'de> for RoutineView
impl<'de> Deserialize<'de> for RoutineView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RoutineView
impl PartialEq for RoutineView
Source§impl Serialize for RoutineView
impl Serialize for RoutineView
impl StructuralPartialEq for RoutineView
Auto Trait Implementations§
impl Forget for RoutineView
impl Freeze for RoutineViewwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Trigger>: Freeze,
PhantomData<String>: Freeze,
impl Move for RoutineView
impl RefUnwindSafe for RoutineView
impl Send for RoutineView
impl Sync for RoutineView
impl Unpin for RoutineView
impl UnsafeUnpin for RoutineViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Trigger>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for RoutineView
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