Skip to main content

ical/prop/
request_status.rs

1//! # REQUEST-STATUS
2//!
3//! The `REQUEST-STATUS` property: the outcome of a scheduling request, a code,
4//! a message and optional data (RFC 5545 3.8.8.3).
5
6use crate::{
7    prop::{IcalPropKind, spec::IcalPropSpec},
8    value::IcalValueKind,
9    version::IcalVersion,
10};
11
12/// The `REQUEST-STATUS` property marker.
13#[allow(non_camel_case_types)]
14pub struct REQUEST_STATUS;
15
16impl IcalPropSpec for REQUEST_STATUS {
17    const KIND: IcalPropKind = IcalPropKind::RequestStatus;
18
19    fn allowed_versions() -> &'static [IcalVersion] {
20        &[IcalVersion::V2_0]
21    }
22
23    fn allowed_values(_version: IcalVersion) -> &'static [IcalValueKind] {
24        &[IcalValueKind::RequestStatus]
25    }
26}