vcard-rs 0.2.1

vCard parser, validator, editor and builder library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! # GENDER value
//!
//! The decoded `GENDER` value.
//!
//! `GENDER` is a structured RFC 6350 6.2.7 value of two `;`-ordered
//! components, a single-letter sex code (`M`, `F`, `O`, `N`, `U`, or empty)
//! and a free-text gender identity, which this bespoke type names.

use alloc::borrow::Cow;

/// The decoded GENDER value: a sex code and a free-text identity.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct VcardGender<'a> {
    /// The sex code (`M`, `F`, `O`, `N`, `U`, or empty).
    pub sex: Cow<'a, str>,
    /// The free-text gender identity.
    pub identity: Cow<'a, str>,
}