Struct contack::Contact[][src]

pub struct Contact {
Show 13 fields pub uid: String, 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>,
}
Expand description

This is the base structure to hold all contact details

Fields

uid: String

The Contact’s Uid

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

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.