mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 18:12:27 +00:00
ical: Serialize calendar component type
This commit is contained in:
@@ -15,8 +15,11 @@ use std::{collections::HashMap, io::BufReader};
|
|||||||
#[derive(Debug, Clone, Serialize, PartialEq, Eq, Display)]
|
#[derive(Debug, Clone, Serialize, PartialEq, Eq, Display)]
|
||||||
// specified in https://datatracker.ietf.org/doc/html/rfc5545#section-3.6
|
// specified in https://datatracker.ietf.org/doc/html/rfc5545#section-3.6
|
||||||
pub enum CalendarObjectType {
|
pub enum CalendarObjectType {
|
||||||
|
#[serde(rename = "VEVENT")]
|
||||||
Event = 0,
|
Event = 0,
|
||||||
|
#[serde(rename = "VTODO")]
|
||||||
Todo = 1,
|
Todo = 1,
|
||||||
|
#[serde(rename = "VJOURNAL")]
|
||||||
Journal = 2,
|
Journal = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user