Skip to main content

ical/component/
daylight.rs

1//! # DAYLIGHT
2//!
3//! The `DAYLIGHT` component: the daylight-saving observance of a `VTIMEZONE`
4//! (RFC 5545 3.6.5).
5
6use crate::{
7    component::{IcalComponentKind, spec::IcalComponentSpec},
8    prop::IcalPropKind,
9};
10
11/// The `DAYLIGHT` component marker.
12pub struct DAYLIGHT;
13
14impl IcalComponentSpec for DAYLIGHT {
15    const KIND: IcalComponentKind = IcalComponentKind::Daylight;
16
17    fn required_props() -> &'static [IcalPropKind] {
18        &[
19            IcalPropKind::DtStart,
20            IcalPropKind::TzOffsetFrom,
21            IcalPropKind::TzOffsetTo,
22        ]
23    }
24}