ical/tree/component/
vtodo.rs1use crate::{
6 component::IcalComponentKind,
7 prop::IcalPropKind,
8 tree::component::{IcalComponentLens, IcalComponentSpec},
9};
10
11#[allow(non_camel_case_types)]
13pub struct VTODO;
14
15impl IcalComponentLens for VTODO {}
16
17impl IcalComponentSpec for VTODO {
18 const KIND: IcalComponentKind = IcalComponentKind::VTodo;
19
20 fn allowed_children() -> &'static [IcalComponentKind] {
21 &[
22 IcalComponentKind::VAlarm,
23 IcalComponentKind::Participant,
24 IcalComponentKind::VLocation,
25 IcalComponentKind::VResource,
26 ]
27 }
28
29 fn required_props() -> &'static [IcalPropKind] {
30 &[IcalPropKind::Uid, IcalPropKind::DtStamp]
31 }
32}