ical/prop/location_type.rs
1//! # LOCATION-TYPE
2//!
3//! The `LOCATION-TYPE` property: what kind of place a `VLOCATION` is (RFC 9073
4//! 6.1).
5
6use crate::{
7 prop::{IcalPropKind, spec::IcalPropSpec},
8 version::IcalVersion,
9};
10
11/// The `LOCATION-TYPE` property marker.
12#[allow(non_camel_case_types)]
13pub struct LOCATION_TYPE;
14
15impl IcalPropSpec for LOCATION_TYPE {
16 const KIND: IcalPropKind = IcalPropKind::LocationType;
17
18 fn allowed_versions() -> &'static [IcalVersion] {
19 &[IcalVersion::V2_0]
20 }
21}