Skip to main content

ical/tree/component/
participant.rs

1//! # PARTICIPANT component lens
2//!
3//! The `PARTICIPANT` component lens.
4
5use crate::{
6    component::IcalComponentKind,
7    tree::component::{IcalComponentLens, IcalComponentSpec},
8};
9
10/// The `PARTICIPANT` component lens.
11#[allow(non_camel_case_types)]
12pub struct PARTICIPANT;
13
14impl IcalComponentLens for PARTICIPANT {}
15
16impl IcalComponentSpec for PARTICIPANT {
17    const KIND: IcalComponentKind = IcalComponentKind::Participant;
18
19    fn allowed_children() -> &'static [IcalComponentKind] {
20        &[IcalComponentKind::VLocation, IcalComponentKind::VResource]
21    }
22}