Struct contack::Contact[][src]

pub struct Contact {
    pub name: Name,
    pub nickname: Option<String>,
    pub anniversary: Option<DateTime>,
    pub bday: Option<DateTime>,
    pub photo: Option<Uri>,
    pub title: Option<String>,
    pub role: Option<String>,
    pub org: Option<Org>,
    pub logo: Option<Uri>,
    pub contact_information: Vec<ContactInformation>,
    pub work_address: Option<Address>,
    pub home_address: Option<Address>,
    pub uid: String,
}

This is the base structure to hold all contact details

Fields

name: Name

The Contacts Name

nickname: Option<String>

The Contact's Nickname

anniversary: Option<DateTime>

The Contact's Anniversary

bday: Option<DateTime>

The Contact's Birthday

photo: Option<Uri>

The Contact's Photo

title: Option<String>

The Contact's Job Title

role: Option<String>

The Contact's Job Role

org: Option<Org>

The Contact's Organization

The Contact's Organization's Logo

contact_information: Vec<ContactInformation>

The Contact's contact information

work_address: Option<Address>

The Contact's Work Address

home_address: Option<Address>

The Contact's Home Address

uid: String

The Contact's Uid

Implementations

impl Contact[src]

pub fn gen_uid(&mut self)[src]

pub fn new(name: Name) -> Contact[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.