Skip to main content

ical/tree/component/
vfreebusy.rs

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