use crate::{
param::IcalParamKind,
prop::{IcalPropKind, spec::IcalPropSpec},
value::IcalValueKind,
version::IcalVersion,
};
pub struct LINK;
impl IcalPropSpec for LINK {
const KIND: IcalPropKind = IcalPropKind::Link;
fn allowed_versions() -> &'static [IcalVersion] {
&[IcalVersion::V2_0]
}
fn allowed_values(_version: IcalVersion) -> &'static [IcalValueKind] {
&[IcalValueKind::Uri, IcalValueKind::Text]
}
fn allowed_params(_version: IcalVersion) -> &'static [IcalParamKind] {
&[
IcalParamKind::Value,
IcalParamKind::LinkRel,
IcalParamKind::Label,
IcalParamKind::FmtType,
]
}
}