pub struct ScheduleRecord {Show 18 fields
pub template_slug: String,
pub collection_slug: String,
pub flow_name: String,
pub enabled: bool,
pub frequency: String,
pub anchor_at: DateTime<Utc>,
pub timezone: String,
pub cron: Option<String>,
pub every_minutes: Option<u32>,
pub until: Option<DateTime<Utc>>,
pub max_runs: Option<u32>,
pub catchup: String,
pub next_run_at: Option<DateTime<Utc>>,
pub last_run_at: Option<DateTime<Utc>>,
pub last_status: Option<String>,
pub run_count: u32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A persisted recurring-run timer for a saved flow (roadmap E11). Keyed by the
saved template slug so a flow has at most one schedule. next_run_at is the
next instant the background scheduler should fire (recomputed after each run
from frequency + anchor_at); None when disabled.
Fields§
§template_slug: String§collection_slug: String§flow_name: String§enabled: bool§frequency: StringOne of hourly | daily | weekly | monthly | yearly |
cron | every_n_minutes | once.
anchor_at: DateTime<Utc>User-chosen first-run instant; also the recurrence anchor (its minute/hour/weekday/day-of-month/month select the recurring slot).
timezone: String§cron: Option<String>§every_minutes: Option<u32>§until: Option<DateTime<Utc>>§max_runs: Option<u32>§catchup: String§next_run_at: Option<DateTime<Utc>>§last_run_at: Option<DateTime<Utc>>§last_status: Option<String>§run_count: u32Number of times the background scheduler has fired this flow.
created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for ScheduleRecord
impl Clone for ScheduleRecord
Source§fn clone(&self) -> ScheduleRecord
fn clone(&self) -> ScheduleRecord
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 moreSource§impl Debug for ScheduleRecord
impl Debug for ScheduleRecord
Source§impl<'de> Deserialize<'de> for ScheduleRecord
impl<'de> Deserialize<'de> for ScheduleRecord
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
Auto Trait Implementations§
impl Freeze for ScheduleRecord
impl RefUnwindSafe for ScheduleRecord
impl Send for ScheduleRecord
impl Sync for ScheduleRecord
impl Unpin for ScheduleRecord
impl UnsafeUnpin for ScheduleRecord
impl UnwindSafe for ScheduleRecord
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