Enum zermelo::AppointmentType [] [src]

pub enum AppointmentType {
    Unknown,
    Lesson,
    Exam,
    Activity,
    Choice,
    Talk,
    Other,
}

You can use this enum to parse Appointment.appointment_type. This is done to make matching easier.

let t = AppointmentType::parse("exam"); // => Some(AppointmentType::Exam)
let n = AppointmentType::parse("abc"); // => None

Variants

unknown in Zermelo's API.

lesson in Zermelo's API.

exam in Zermelo's API.

activity in Zermelo's API.

choice in Zermelo's API.

talk in Zermelo's API.

other in Zermelo's API.

Methods

impl AppointmentType
[src]

[src]

Parse appointment type from &str. Returns an optional AppointmentType.

Trait Implementations

Auto Trait Implementations