ical-rs 0.1.0

iCalendar parser, validator, editor and builder library for Rust
Documentation
//! # VFREEBUSY component lens
//!
//! The `VFREEBUSY` component lens.

use crate::{
    component::IcalComponentKind,
    prop::IcalPropKind,
    tree::component::{IcalComponentLens, IcalComponentSpec},
};

/// The `VFREEBUSY` component lens.
#[allow(non_camel_case_types)]
pub struct VFREEBUSY;

impl IcalComponentLens for VFREEBUSY {}

impl IcalComponentSpec for VFREEBUSY {
    const KIND: IcalComponentKind = IcalComponentKind::VFreeBusy;

    fn required_props() -> &'static [IcalPropKind] {
        &[IcalPropKind::Uid, IcalPropKind::DtStamp]
    }
}