ical-rs 0.3.0

iCalendar parser, validator, editor, merger and builder library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! # PARTICIPANT
//!
//! The `PARTICIPANT` component: one participant of an event, richer than an
//! `ATTENDEE` line (RFC 9073 7.1).

use crate::component::{IcalComponentKind, spec::IcalComponentSpec};

/// The `PARTICIPANT` component marker.
pub struct PARTICIPANT;

impl IcalComponentSpec for PARTICIPANT {
    const KIND: IcalComponentKind = IcalComponentKind::Participant;

    fn allowed_children() -> &'static [IcalComponentKind] {
        &[IcalComponentKind::VLocation, IcalComponentKind::VResource]
    }
}