ical-rs 0.5.1

iCalendar parser, validator, editor, merger and builder library
Documentation
//! # Request-status value
//!
//! The decoded request-status value kind.
//!
//! Backs the `REQUEST-STATUS` property (RFC 5545 3.8.8.3): a status code, a
//! human-readable description, and optional extra data, the three components
//! separated on the wire by semicolons. Each is kept as its raw text, the
//! optional extra data being an empty [`Cow`] when absent.

use alloc::borrow::Cow;

/// A decoded request-status value (code, description, and optional extra data),
/// each kept as its raw text.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct IcalRequestStatus<'a> {
    /// The hierarchical status code (e.g. `2.0`), kept as its raw text.
    pub code: Cow<'a, str>,
    /// The human-readable description of the status.
    pub description: Cow<'a, str>,
    /// Optional extra data; an empty [`Cow`] when absent.
    pub extra: Cow<'a, str>,
}