pub struct AppointmentTemplateCreate {Show 23 fields
pub address: Option<AppointmentTemplateAddressCreate>,
pub all_day: Option<Option<bool>>,
pub bookings: Option<Option<Vec<AppointmentBooking>>>,
pub calendar_id: i64,
pub days_archive_group_no: Option<Option<i64>>,
pub days_forward_no: Option<Option<i64>>,
pub description: Option<Option<String>>,
pub duration: i64,
pub events: Option<Option<Vec<AppointmentEvent>>>,
pub grouptype_id: Option<Option<i64>>,
pub is_internal: Option<Option<bool>>,
pub link: Option<Option<String>>,
pub on_behalf_of_pid: Option<Option<i64>>,
pub repeat_duration: Option<Option<i64>>,
pub repeat_frequency: Option<Option<i64>>,
pub repeat_id: Option<i64>,
pub repeat_option_id: Option<Option<i64>>,
pub start_time: String,
pub subtitle: Option<Option<String>>,
pub tags: Option<Option<Vec<i64>>>,
pub template_group_id: Option<Option<i64>>,
pub title: String,
pub extra: Map<String, Value>,
}Expand description
Save reusable appointment defaults without creating appointments or their linked resources.
Fields§
§address: Option<AppointmentTemplateAddressCreate>Location entered with an appointment template.
all_day: Option<Option<bool>>Whether the template proposes an all-day appointment.
None leaves the field out, Some(None) sends null.
bookings: Option<Option<Vec<AppointmentBooking>>>Stored resource-booking defaults in the legacy template format.
None leaves the field out, Some(None) sends null.
calendar_id: i64Calendar for which the template provides defaults.
days_archive_group_no: Option<Option<i64>>Days after the appointment for archiving registration groups.
None leaves the field out, Some(None) sends null.
days_forward_no: Option<Option<i64>>Days ahead for creating registration groups.
None leaves the field out, Some(None) sends null.
description: Option<Option<String>>None leaves the field out, Some(None) sends null.
duration: i64Difference between end and start in seconds. With allDay=true, 0 represents one all-day date because the appointment end date is inclusive.
events: Option<Option<Vec<AppointmentEvent>>>Stored service-planning event template selections. Applying them is part of appointment creation, not saving this template.
None leaves the field out, Some(None) sends null.
grouptype_id: Option<Option<i64>>Group type for registration groups created for appointment occurrences.
None leaves the field out, Some(None) sends null.
is_internal: Option<Option<bool>>None leaves the field out, Some(None) sends null.
link: Option<Option<String>>None leaves the field out, Some(None) sends null.
on_behalf_of_pid: Option<Option<i64>>None leaves the field out, Some(None) sends null.
repeat_duration: Option<Option<i64>>Seconds from the chosen appointment start to the series end used when applying this template.
None leaves the field out, Some(None) sends null.
repeat_frequency: Option<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.
None leaves the field out, Some(None) sends null.
repeat_id: Option<i64>Recurrence 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_id: Option<Option<i64>>Monthly-by-weekday ordinal, using the template field name repeatOptionId. The resulting appointment uses repeatOption.
None leaves the field out, Some(None) sends null.
start_time: StringLocal start time used when applying the template, conventionally HH:mm.
subtitle: Option<Option<String>>None leaves the field out, Some(None) sends null.
Existing appointment-tag IDs saved in the template.
None leaves the field out, Some(None) sends null.
template_group_id: Option<Option<i64>>Group used as a template for registration groups.
None leaves the field out, Some(None) sends null.
title: StringTitle proposed for appointments created from this template.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.