ical/value/request_status.rs
1//! # Request-status value
2//!
3//! The decoded request-status value kind.
4//!
5//! Backs the `REQUEST-STATUS` property (RFC 5545 3.8.8.3): a status code, a
6//! human-readable description, and optional extra data, the three components
7//! separated on the wire by semicolons. Each component is kept as its raw text;
8//! the optional extra data is an empty [`Cow`] when absent. Pure data, no
9//! escaping; the owning property's wire name lives on
10//! [`crate::prop::IcalProp::name`].
11
12use alloc::borrow::Cow;
13
14/// A decoded request-status value (code, description, and optional extra data),
15/// each kept as its raw text.
16#[derive(Clone, Debug, Default, PartialEq, Eq)]
17pub struct IcalRequestStatus<'a> {
18 /// The hierarchical status code (e.g. `2.0`), kept as its raw text.
19 pub code: Cow<'a, str>,
20 /// The human-readable description of the status.
21 pub description: Cow<'a, str>,
22 /// Optional extra data; an empty [`Cow`] when absent.
23 pub extra: Cow<'a, str>,
24}