Skip to main content

ical/prop/
location.rs

1//! # LOCATION
2//!
3//! The `LOCATION` property: where the component takes place (RFC 5545 3.8.1.7).
4
5use crate::{
6    prop::{IcalPropKind, cardinality::IcalPropCardinality, spec::IcalPropSpec},
7    version::IcalVersion,
8};
9
10/// The `LOCATION` property marker.
11pub struct LOCATION;
12
13impl IcalPropSpec for LOCATION {
14    const KIND: IcalPropKind = IcalPropKind::Location;
15
16    fn cardinality(_version: IcalVersion) -> IcalPropCardinality {
17        IcalPropCardinality::AtMostOne
18    }
19}