pub struct CalendarCreate {
pub campus_id: Option<Option<i64>>,
pub color: Option<Option<String>>,
pub ev_termine_event_type_id: Option<Option<i64>>,
pub event_template_id: Option<Option<i64>>,
pub i_cal_source_url: Option<Option<String>>,
pub name: String,
pub sort_key: i64,
pub sync_to_ev_termine: Option<bool>,
pub type: String,
pub extra: Map<String, Value>,
}Expand description
Create a calendar with its category and settings. The creator receives permission to edit its appointments. Calendar creation does not itself create appointments, except when an iCalSourceUrl initiates a feed import.
Fields§
§campus_id: Option<Option<i64>>Campus associated with this calendar, or null for no campus. A campus represents a ChurchTools location/site, not a calendar permission group.
None leaves the field out, Some(None) sends null.
color: Option<Option<String>>Display color, normally a CSS hex color such as #336699.
None leaves the field out, Some(None) sends null.
ev_termine_event_type_id: Option<Option<i64>>Event type ID used by the Evangelische Termine integration, or null. This is an external event classification, not a ChurchTools calendar type.
None leaves the field out, Some(None) sends null.
event_template_id: Option<Option<i64>>Configured service-planning event template ID for this calendar, or null. This differs from an appointment template.
None leaves the field out, Some(None) sends null.
i_cal_source_url: Option<Option<String>>External iCalendar feed to import. webcal:// and ical:// are normalized to https://; addresses without a scheme receive https://.
None leaves the field out, Some(None) sends null.
name: StringCalendar display name.
sort_key: i64Display order. The calendar list is sorted by this value in ascending order.
sync_to_ev_termine: Option<bool>Whether the Evangelische Termine integration should synchronize this calendar. This is separate from importing an iCalendar feed.
type: StringCalendar category used by ChurchTools: church for a church calendar, group for a group calendar, personal for a personal calendar. The category determines which administration permissions apply; it does not by itself grant public access or link the calendar to a particular group or person. Access is controlled separately. The type is chosen on creation and cannot be changed by PUT.
Allowed values: church, group, personal.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.