Skip to main content

vcard/value/
client_pid_map.rs

1//! # CLIENTPIDMAP value
2//!
3//! The decoded `CLIENTPIDMAP` value.
4//!
5//! `CLIENTPIDMAP` ties the PID source identifiers used by `PID` parameters to
6//! the client (a URI) that produced them: a structured RFC 6350 6.7.7 value of
7//! two `;`-ordered components, a small integer source id and a URI, which this
8//! bespoke type names.
9
10use alloc::borrow::Cow;
11
12/// The decoded CLIENTPIDMAP value: a source id and the URI that produced it.
13#[derive(Clone, Debug, Default, PartialEq, Eq)]
14pub struct VcardClientPidMap<'a> {
15    /// The PID source identifier (a small positive integer).
16    pub id: Cow<'a, str>,
17    /// The URI of the client that produced the identifiers.
18    pub uri: Cow<'a, str>,
19}