pub struct RepeatCalculationBase {
pub additions: Vec<BTreeMap<String, Value>>,
pub all_day: bool,
pub end_date: DateOrDateTime,
pub exceptions: Vec<BTreeMap<String, Value>>,
pub id: i64,
pub repeat_frequency: Option<i64>,
pub repeat_id: i64,
pub repeat_option: Option<i64>,
pub repeat_until: Option<NaiveDate>,
pub start_date: DateOrDateTime,
pub extra: Map<String, Value>,
}Expand description
Echo of the transient recurrence definition.
Fields§
§additions: Vec<BTreeMap<String, Value>>§all_day: bool§end_date: DateOrDateTimeUse a UTC timestamp for a timed appointment or YYYY-MM-DD for an all-day appointment. ChurchTools interprets dates in the installation’s timezone. Seconds on appointment input are discarded.
exceptions: Vec<BTreeMap<String, Value>>§id: i64Placeholder ID because no appointment is stored.
Allowed values: -1.
repeat_frequency: Option<i64>Interval between repetitions; use a positive integer for automatic patterns, for example 2 with repeatId=7 for every two weeks. Irrelevant for once/manual patterns.
repeat_id: i64Recurrence pattern: 0 = once, 1 = daily, 7 = weekly, 31 = monthly by date, 32 = monthly by weekday, 365 = yearly, 999 = manually selected dates. Automatic patterns use repeatFrequency and repeatUntil; manual dates use additionals.
Allowed values: 0, 1, 31, 32, 365, 7, 999.
repeat_option: Option<i64>For repeatId=32, ordinal of the weekday within the month: 1–5 for first through fifth, 6 for last. The weekday comes from startDate.
repeat_until: Option<NaiveDate>Inclusive last date of an automatic series. Supply this with automatic recurrence; omission does not represent an unlimited series in these write endpoints.
start_date: DateOrDateTimeUse a UTC timestamp for a timed appointment or YYYY-MM-DD for an all-day appointment. ChurchTools interprets dates in the installation’s timezone. Seconds on appointment input are discarded.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.