vcard-rs 0.2.1

vCard parser, validator, editor and builder library for Rust
Documentation
//! # ORG value
//!
//! The decoded `ORG` (organization) value.
//!
//! `ORG` is a structured RFC 6350 6.6.4 value: a `;`-ordered sequence of
//! organization units, from the top-level organization name down through
//! divisions, which this bespoke type holds as an ordered list.

use alloc::{borrow::Cow, vec::Vec};

/// The decoded ORG value: organization units, broadest first.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct VcardOrg<'a>(pub Vec<Cow<'a, str>>);

impl<'a> From<Vec<Cow<'a, str>>> for VcardOrg<'a> {
    fn from(units: Vec<Cow<'a, str>>) -> Self {
        Self(units)
    }
}