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