use crate::{
component::{IcalComponentKind, spec::IcalComponentSpec},
prop::IcalPropKind,
};
pub struct VCALENDAR;
impl IcalComponentSpec for VCALENDAR {
const KIND: IcalComponentKind = IcalComponentKind::VCalendar;
fn allowed_children() -> &'static [IcalComponentKind] {
&[
IcalComponentKind::VEvent,
IcalComponentKind::VTodo,
IcalComponentKind::VJournal,
IcalComponentKind::VFreeBusy,
IcalComponentKind::VTimezone,
IcalComponentKind::VAvailability,
]
}
fn required_props() -> &'static [IcalPropKind] {
&[IcalPropKind::ProdId]
}
}