pub struct Contact {
pub path: ResourcePath,
pub etag: ETag,
pub full_name: String,
pub emails: Vec<LabeledValue>,
pub phones: Vec<LabeledValue>,
pub organization: Option<String>,
pub note: Option<String>,
pub is_group: bool,
pub groups: Vec<GroupRef>,
}Expand description
One contact.
Fields§
§path: ResourcePathPath relative to the address book home.
etag: ETagETag for a conditional write.
full_name: StringFull name.
emails: Vec<LabeledValue>Email addresses.
phones: Vec<LabeledValue>Phone numbers.
organization: Option<String>Company.
note: Option<String>Free-text note.
is_group: boolThe card is a group, not a person.
groups: Vec<GroupRef>The groups the contact is in. Filled by get only.
Trait Implementations§
impl Eq for Contact
impl StructuralPartialEq for Contact
Auto Trait Implementations§
impl Forget for Contact
impl Freeze for Contactwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<LabeledValue>: Freeze,
PhantomData<GroupRef>: Freeze,
impl Move for Contact
impl RefUnwindSafe for Contact
impl Send for Contactwhere
RawVecInner: Send,
impl Sync for Contactwhere
RawVecInner: Sync,
impl Unpin for Contact
impl UnsafeUnpin for Contactwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LabeledValue>: UnsafeUnpin,
PhantomData<GroupRef>: UnsafeUnpin,
impl UnwindSafe for Contactwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more