Skip to main content

ical/prop/
concept.rs

1//! # CONCEPT
2//!
3//! The `CONCEPT` property: a concept the component belongs to, by URI (RFC 9253
4//! 6.3).
5
6use crate::{
7    prop::{IcalPropKind, spec::IcalPropSpec},
8    value::IcalValueKind,
9    version::IcalVersion,
10};
11
12/// The `CONCEPT` property marker.
13pub struct CONCEPT;
14
15impl IcalPropSpec for CONCEPT {
16    const KIND: IcalPropKind = IcalPropKind::Concept;
17
18    fn allowed_versions() -> &'static [IcalVersion] {
19        &[IcalVersion::V2_0]
20    }
21
22    fn allowed_values(_version: IcalVersion) -> &'static [IcalValueKind] {
23        &[IcalValueKind::Uri, IcalValueKind::Text]
24    }
25}