Struct melib::addressbook::Card
source · pub struct Card { /* private fields */ }
Implementations§
source§impl Card
impl Card
pub fn new() -> Self
pub fn id(&self) -> &CardId
pub fn title(&self) -> &str
pub fn name(&self) -> &str
pub fn additionalname(&self) -> &str
pub fn name_prefix(&self) -> &str
pub fn name_suffix(&self) -> &str
pub fn email(&self) -> &str
pub fn url(&self) -> &str
pub fn key(&self) -> &str
pub fn last_edited(&self) -> String
pub fn extra_property(&self, key: &str) -> Option<&str>
pub fn extra_properties(&self) -> &IndexMap<String, String>
pub fn external_resource(&self) -> bool
pub fn set_id(&mut self, new_val: CardId) -> &mut Self
pub fn set_title(&mut self, val: String) -> &mut Self
pub fn set_name(&mut self, val: String) -> &mut Self
pub fn set_additionalname(&mut self, val: String) -> &mut Self
pub fn set_name_prefix(&mut self, val: String) -> &mut Self
pub fn set_name_suffix(&mut self, val: String) -> &mut Self
pub fn set_email(&mut self, val: String) -> &mut Self
pub fn set_url(&mut self, val: String) -> &mut Self
pub fn set_key(&mut self, val: String) -> &mut Self
pub fn set_extra_property(&mut self, key: &str, value: String) -> &mut Self
pub fn set_external_resource(&mut self, new_val: bool) -> &mut Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Card
impl PartialEq for Card
impl Eq for Card
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.