pub struct TimingConfig {
pub cron: Option<Located<Value>>,
pub every: Option<Located<Value>>,
pub rrule: Option<Located<Value>>,
pub starting: Option<Located<Value>>,
pub at: Option<Located<Value>>,
pub except: Option<Located<Value>>,
pub also: Option<Located<Value>>,
pub timezone: Option<Loose<String>>,
pub unknown: UnknownKeys,
}Expand description
One named timing: when it fires, in which timezone, and the dates it skips or adds.
Fields§
§cron: Option<Located<Value>>A cron expression (5 fields, or a macro such as @daily). A timing needs exactly one of cron, every or rrule.
every: Option<Located<Value>>Every N days, weeks or months, with exactly one unit, e.g. {days: 3}.
rrule: Option<Located<Value>>An iCalendar recurrence rule, e.g. FREQ=MONTHLY;BYDAY=2TU. Use starting for a rule with INTERVAL above 1 or COUNT, and at for its time of day.
starting: Option<Located<Value>>With every or rrule: the first date, YYYY-MM-DD. every needs it, and so does a rule with INTERVAL above 1, a COUNT, or a day it takes from its start.
at: Option<Located<Value>>With every or rrule: the time of day, HH:MM (24-hour), unless the rule sets BYHOUR/BYMINUTE. Default: 00:00.
except: Option<Located<Value>>Dates (YYYY-MM-DD, in its timezone) it doesn’t fire on, e.g. holidays.
also: Option<Located<Value>>Extra dates (YYYY-MM-DD) it fires on, at its time of day in its timezone. Needs a timing that fires at one time of day.
timezone: Option<Loose<String>>The timezone it fires in, an IANA name such as Australia/Sydney; schedules using the timing also run in it. Default: the project’s timezone:, then UTC.
unknown: UnknownKeysImplementations§
Source§impl TimingConfig
impl TimingConfig
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimingConfig
impl<'de> Deserialize<'de> for TimingConfig
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>,
Source§impl JsonSchema for TimingConfig
impl JsonSchema for TimingConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more