pub struct Absence {
pub absence_reason: AbsenceReason,
pub comment: String,
pub end_date: NaiveDate,
pub end_time: Option<DateTime<Utc>>,
pub id: i64,
pub meta: MetaDataEntityId,
pub person: DomainObjectPerson,
pub start_date: NaiveDate,
pub start_time: Option<DateTime<Utc>>,
pub extra: Map<String, Value>,
}Expand description
An absence from service planning for one person, such as vacation or sickness. Both boundaries are stored in the application time zone. If both are midnight, startTime and endTime are null; otherwise both contain full UTC timestamps. startDate and endDate always contain the local calendar dates.
Fields§
§absence_reason: AbsenceReasonInstallation-specific category of absence, such as vacation or sickness. Use its id as absenceReasonId. Labels are configurable and must not be treated as an enum.
comment: StringStored comment; absent comments are returned as an empty string.
end_date: NaiveDateWhen this absence ends.
end_time: Option<DateTime<Utc>>When this absence ends. Is null if absence is all-day.
id: i64ID of Record
meta: MetaDataEntityId§person: DomainObjectPersonPerson as Domain Object
start_date: NaiveDateWhen this absence begins.
start_time: Option<DateTime<Utc>>When this absence begins. Is null if absence is all-day.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.