ical/component/available.rs
1//! # AVAILABLE
2//!
3//! The `AVAILABLE` component: one available period of a `VAVAILABILITY` (RFC
4//! 7953 3.1).
5
6use crate::{
7 component::{IcalComponentKind, spec::IcalComponentSpec},
8 prop::IcalPropKind,
9};
10
11/// The `AVAILABLE` component marker.
12pub struct AVAILABLE;
13
14impl IcalComponentSpec for AVAILABLE {
15 const KIND: IcalComponentKind = IcalComponentKind::Available;
16
17 fn required_props() -> &'static [IcalPropKind] {
18 &[
19 IcalPropKind::DtStamp,
20 IcalPropKind::DtStart,
21 IcalPropKind::Uid,
22 ]
23 }
24}