Skip to main content

ical/component/
participant.rs

1//! # PARTICIPANT
2//!
3//! The `PARTICIPANT` component: one participant of an event, richer than an
4//! `ATTENDEE` line (RFC 9073 7.1).
5
6use crate::component::{IcalComponentKind, spec::IcalComponentSpec};
7
8/// The `PARTICIPANT` component marker.
9pub struct PARTICIPANT;
10
11impl IcalComponentSpec for PARTICIPANT {
12    const KIND: IcalComponentKind = IcalComponentKind::Participant;
13
14    fn allowed_children() -> &'static [IcalComponentKind] {
15        &[IcalComponentKind::VLocation, IcalComponentKind::VResource]
16    }
17}