ical/prop/attach.rs
1//! # ATTACH
2//!
3//! The `ATTACH` property: a document associated with the component, a URI or an
4//! inline `BASE64` body (RFC 5545 3.8.1.1).
5
6use crate::{
7 prop::{IcalPropKind, spec::IcalPropSpec},
8 value::IcalValueKind,
9 version::IcalVersion,
10};
11
12/// The `ATTACH` property marker.
13pub struct ATTACH;
14
15impl IcalPropSpec for ATTACH {
16 const KIND: IcalPropKind = IcalPropKind::Attach;
17
18 fn allowed_values(_version: IcalVersion) -> &'static [IcalValueKind] {
19 &[IcalValueKind::Uri]
20 }
21}