pub struct ResourceCreate {Show 13 fields
pub admin_ids: Option<Vec<i64>>,
pub description: Option<Option<String>>,
pub i_cal_location: Option<Option<String>>,
pub is_auto_accept: Option<bool>,
pub is_virtual: Option<bool>,
pub location: Option<Option<String>>,
pub name: String,
pub quantity: Option<i64>,
pub random_string: Option<Option<String>>,
pub resource_type_id: i64,
pub sort_key: i64,
pub needs_appointment: Option<bool>,
pub extra: Map<String, Value>,
}Expand description
Configuration for an individual bookable resource.
Fields§
§admin_ids: Option<Vec<i64>>Persons responsible for this resource. Resource administrators can view and administer its bookings; changing resource settings still requires permission to edit resource master data.
description: Option<Option<String>>Additional information about the resource, such as capacity or available equipment.
None leaves the field out, Some(None) sends null.
i_cal_location: Option<Option<String>>Location text used in the resource’s iCalendar export.
None leaves the field out, Some(None) sends null.
is_auto_accept: Option<bool>Automatically approves pending bookings when there are no conflicts. For virtual resources, automatic approval bypasses the conflict check. This does not grant permission to edit resource settings.
is_virtual: Option<bool>Whether this is a virtual resource. Virtual bookings have a separate creation permission and bypass conflicts when checking automatic approval.
location: Option<Option<String>>Internal location of the resource.
None leaves the field out, Some(None) sends null.
name: StringName of the individual resource, for example a room or vehicle.
quantity: Option<i64>Number of units available for simultaneous bookings.
random_string: Option<Option<String>>Access token used by the legacy public iCalendar export. Changing or clearing it invalidates subscriptions using the previous token.
None leaves the field out, Some(None) sends null.
resource_type_id: i64Resource type used to group this resource, such as rooms or vehicles. Resource types are available from /resourcetypes.
sort_key: i64Sort value for displaying resources.
needs_appointment: Option<bool>Requires bookings to be linked to a calendar appointment. When true, create bookings through the appointment APIs; POST /bookings cannot create independent bookings for this resource.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.