ical/prop/image.rs
1//! # IMAGE
2//!
3//! The `IMAGE` property: an image for the calendar or component, by URI or
4//! inline (RFC 7986 5.10).
5
6use crate::{
7 prop::{IcalPropKind, spec::IcalPropSpec},
8 value::IcalValueKind,
9 version::IcalVersion,
10};
11
12/// The `IMAGE` property marker.
13pub struct IMAGE;
14
15impl IcalPropSpec for IMAGE {
16 const KIND: IcalPropKind = IcalPropKind::Image;
17
18 fn allowed_versions() -> &'static [IcalVersion] {
19 &[IcalVersion::V2_0]
20 }
21
22 fn allowed_values(_version: IcalVersion) -> &'static [IcalValueKind] {
23 &[IcalValueKind::Uri]
24 }
25}