Struct zermelo::Appointment [] [src]

pub struct Appointment {
    pub appointment_instance: Option<i64>,
    pub id: Option<i64>,
    pub start: Option<i64>,
    pub end: Option<i64>,
    pub start_time_slot: Option<i64>,
    pub end_time_slot: Option<i64>,
    pub subjects: Option<Vec<String>>,
    pub appointment_type: Option<String>,
    pub remark: Option<String>,
    pub locations: Option<Vec<String>>,
    pub teachers: Option<Vec<String>>,
    pub groups: Option<Vec<String>>,
    pub created: Option<i64>,
    pub last_modified: Option<i64>,
    pub valid: Option<bool>,
    pub hidden: Option<bool>,
    pub cancelled: Option<bool>,
    pub modified: Option<bool>,
    pub moved: Option<bool>,
    pub new: Option<bool>,
    pub change_description: Option<String>,
    pub branch_of_school: Option<i64>,
    pub branch: Option<String>,
}

This struct represents an appointment in the schedule. It should (more or less) match Zermelo's appointment specification.

This struct does not have an implementation with methods like Appointment::new(), because is is deserialised by serde.

Note: instead of camelCase, as used by Zermelo in their JSON, this struct uses snake_case, as common in Rust programs. Example: startTimeSlot becomes start_time_slot.

Note: appointment_type is called type in Zermelo's API, but type is a reserved keyword in Rust.

See Zermelo's appointment documentation for a full explanation of this struct's members.

On this page a part of Zermelo's explanation can be found.

Fields

The id of the appointment instance this appointment version belongs to.

The internal id of this version of the appointment.

UTC Unix time of the start of this appointment (the number of seconds elapsed since 1 January 1970).

UTC Unix time of the end of this appointment (the number of seconds elapsed since 1 January 1970).

The numerical designation of the time slot during which this appointment starts. Usual values are between 1 and 9.

The numerical designation of the time slot during which this appointment ends. Usual values are between 1 and 9.

The (human readable) subjects names or abbreviations this appointment is about.

The type of this appointment. See AppointmentType for more information. Note: this member is called type in Zermelo's API, but type is a reserved keyword in Rust.

Remark for this appointment. For example: "Don't forget your books".

The names of the locations (classrooms) where this appointment will take place.

The (three letter) codes/abbreviations of the teachers participating in this appointment.

The names of the student groups participating in this appointment.

The UTC Unix Time of when this appointment version was created. Useful to show a chronological view of the history of this appointment.

Unix time (UTC) at which any fields of this version of the appointment were modified or when this version of the appointment was created.

True if this appointment is part of the most up-to-date schedule.

True if this version of the appointment was hidden and should not be shown to users.

True if this appointment has been cancelled.

True if anything at all was changed in this version of the appointment.

True if the start or end time or the location of this appointment were modified.

True if this appointment has been added and was not originally scheduled.

A textual description of the change to be shown to the user.

Internal ID of the branch of the schoolInSchoolyear (Dutch: vestiging van school in schooljaar) this appointment belongs to.

Convenience field providing the branch code of the branchOfSchool.

Trait Implementations

impl Debug for Appointment
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Appointment

impl Sync for Appointment