pub struct AbsenceUpdate {
pub absence_reason_id: i64,
pub comment: Option<Option<String>>,
pub end_date: Option<DateOrDateTime>,
pub end_time: Option<DateTime<Utc>>,
pub start_date: Option<DateOrDateTime>,
pub start_time: Option<DateTime<Utc>>,
pub extra: Map<String, Value>,
}Expand description
Replaces an existing absence belonging to the person identified by the path.
Fields§
§absence_reason_id: i64ID of an existing, installation-specific absence reason. Reasons are master data and are not a fixed enum.
comment: Option<Option<String>>Comment about the absence.
None leaves the field out, Some(None) sends null.
end_date: Option<DateOrDateTime>Calendar date (YYYY-MM-DD), interpreted at midnight in the application time zone, or a UTC timestamp ending in Z. Timestamp values for startDate and endDate use whole-minute precision.
end_time: Option<DateTime<Utc>>Takes precedence over endDate.
start_date: Option<DateOrDateTime>Calendar date (YYYY-MM-DD), interpreted at midnight in the application time zone, or a UTC timestamp ending in Z. Timestamp values for startDate and endDate use whole-minute precision.
start_time: Option<DateTime<Utc>>Takes precedence over startDate.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.