pub fn parse_calendar_type(ty: i32) -> CalendarType {
    match ty {
        0 => CalendarType::GoogleCalendar,
        1 => CalendarType::CalDav,
        2 => CalendarType::CalDavUnauthenticated,
        _ => panic!(),
    }
}
/// Parse the user's calendar.
Parse the user's calendar.
Parse the user ' s calendar .
pub fn parse_calendar_type(ty: i32) -> CalendarType {
    match ty {
        0 => CalendarType::GoogleCalendar,
        1 => CalendarType::CalDav,
        2 => CalendarType::CalDavUnauthenticated,
        _ => panic!(),
    }
}
pub fn parse_calendar_type ( ty : i32 ) -> CalendarType { match ty { 0 => CalendarType :: GoogleCalendar , 1 => CalendarType :: CalDav , 2 => CalendarType :: CalDavUnauthenticated , _ => panic ! ( ) , } }
Parse the user's calendar.
Parse the user ' s calendar .
ty
i32