pub struct BookingBase {Show 31 fields
pub additionals: Vec<BookingAdditional>,
pub all_day: bool,
pub answered_date: Option<DateTime<Utc>>,
pub answered_pid: Option<i64>,
pub appointment: Option<SimpleAppointment>,
pub appointment_id: Option<i64>,
pub caption: Option<String>,
pub description: Option<String>,
pub end_date: DateOrDateTime,
pub exceptions: Vec<BookingException>,
pub id: i64,
pub involved_persons_domain_objects: Option<BookingCalculatedWithIncludesBaseInvolvedPersonsDomainObjects>,
pub is_anonymized: bool,
pub location: Option<String>,
pub meta: MetaDataEntityId,
pub note: Option<String>,
pub on_behalf_of_pid: Option<i64>,
pub quantity: i64,
pub repeat_frequency: Option<i64>,
pub repeat_id: i64,
pub repeat_option: Option<i64>,
pub repeat_until: Option<NaiveDate>,
pub resource: Option<BookingCalculatedWithIncludesBaseResource>,
pub resource_id: i64,
pub show_in_cal: bool,
pub start_date: DateOrDateTime,
pub status_id: i64,
pub subtitle: Option<String>,
pub title: String,
pub version: i64,
pub extra: Map<String, Value>,
}Expand description
Stored resource booking, which may represent a recurring series. A booking reserves one resource. appointment links it to a calendar appointment; null identifies an independent booking. Use calculated occurrence dates when displaying a series in a date range.
Fields§
§additionals: Vec<BookingAdditional>§all_day: bool§answered_date: Option<DateTime<Utc>>When the current approval or rejection was recorded; null while unanswered.
answered_pid: Option<i64>Person who recorded the answer, including the system user for automatic approval; null while unanswered.
appointment: Option<SimpleAppointment>Linked calendar appointment, or null for an independent booking.
appointment_id: Option<i64>Use appointment instead.
Use appointment instead.
caption: Option<String>Use title instead.
Use title instead.
description: Option<String>§end_date: DateOrDateTime§exceptions: Vec<BookingException>§id: i64§involved_persons_domain_objects: Option<BookingCalculatedWithIncludesBaseInvolvedPersonsDomainObjects>Included with include[]=involvedPersonsDomainObjects. The person for whom the booking was made and the person who answered can be null.
is_anonymized: boolTrue when the reader may see availability but booking title, subtitle and description are hidden. This can result from missing access to the linked calendar or public-user anonymization settings.
location: Option<String>Use subtitle instead.
Use subtitle instead.
meta: MetaDataEntityId§note: Option<String>Use description instead.
Use description instead.
on_behalf_of_pid: Option<i64>Person for whom the booking is made.
quantity: i64§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.
resource: Option<BookingCalculatedWithIncludesBaseResource>Use resourceId instead.
Use resourceId instead.
resource_id: i64Resource to reserve, such as a room, vehicle or piece of equipment.
show_in_cal: boolWhether the booking is marked for display in the calendar. This does not create or link a calendar appointment.
start_date: DateOrDateTime§status_id: i64Booking status: 1 = pending approval, 2 = approved, 3 = rejected. Rejected bookings are excluded from conflict checks.
Allowed values: 1, 2, 3.
subtitle: Option<String>§title: String§version: i64Version counter increased by booking updates and status changes.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.