[][src]Struct melib::addressbook::Card

pub struct Card {
    id: CardId,
    title: String,
    name: String,
    additionalname: String,
    name_prefix: String,
    name_suffix: String,
    birthday: Option<UnixTimestamp>,
    email: String,
    url: String,
    key: String,
    color: u8,
    last_edited: UnixTimestamp,
    extra_properties: HashMap<String, String>,
    external_resource: bool,
}

Fields

id: CardIdtitle: Stringname: Stringadditionalname: Stringname_prefix: Stringname_suffix: Stringbirthday: Option<UnixTimestamp>email: Stringurl: Stringkey: Stringcolor: u8last_edited: UnixTimestampextra_properties: HashMap<String, String>external_resource: bool

If true, we can't make any changes because we do not manage this resource.

Implementations

impl Card[src]

pub fn new() -> Card[src]

pub fn id(&self) -> &CardId[src]

pub fn title(&self) -> &str[src]

pub fn name(&self) -> &str[src]

pub fn additionalname(&self) -> &str[src]

pub fn name_prefix(&self) -> &str[src]

pub fn name_suffix(&self) -> &str[src]

pub fn email(&self) -> &str[src]

pub fn url(&self) -> &str[src]

pub fn key(&self) -> &str[src]

pub fn last_edited(&self) -> String[src]

pub fn set_id(&mut self, new_val: CardId)[src]

pub fn set_title(&mut self, new: String)[src]

pub fn set_name(&mut self, new: String)[src]

pub fn set_additionalname(&mut self, new: String)[src]

pub fn set_name_prefix(&mut self, new: String)[src]

pub fn set_name_suffix(&mut self, new: String)[src]

pub fn set_email(&mut self, new: String)[src]

pub fn set_url(&mut self, new: String)[src]

pub fn set_key(&mut self, new: String)[src]

pub fn set_extra_property(&mut self, key: &str, value: String)[src]

pub fn extra_property(&self, key: &str) -> Option<&str>[src]

pub fn extra_properties(&self) -> &HashMap<String, String>[src]

pub fn set_external_resource(&mut self, new_val: bool)[src]

pub fn external_resource(&self) -> bool[src]

Trait Implementations

impl Clone for Card[src]

impl Debug for Card[src]

impl Default for Card[src]

impl<'de> Deserialize<'de> for Card[src]

impl From<HashMap<String, String, RandomState>> for Card[src]

impl PartialEq<Card> for Card[src]

impl Serialize for Card[src]

impl StructuralPartialEq for Card[src]

impl<V: VCardVersion> TryInto<Card> for VCard<V>[src]

type Error = MeliError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Card

impl Send for Card

impl Sync for Card

impl Unpin for Card

impl UnwindSafe for Card

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]