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