neverest 0.2.0

CLI to synchronize PIM collections: mail, contact, calendar…
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! # Address
//!
//! An email address shared by every mail protocol. Mail-specific: phase 2
//! of the kind seam moves it under the `message/rfc822` kind.

use serde::{Deserialize, Serialize};

/// A single email address with an optional display name.
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Address {
    /// Display name (e.g. `Alice`), if any.
    pub name: Option<String>,
    /// Email address (e.g. `alice@example.org`).
    pub email: String,
}