Struct email_address_list::Contact
source · pub struct Contact {
pub name: Option<String>,
pub email: Option<String>,
pub comment: Option<String>,
}
Fields
name: Option<String>
email: Option<String>
comment: Option<String>
Implementations
sourceimpl Contact
impl Contact
pub fn new() -> Self
pub fn new_with<T>(
name: Option<T>,
email: Option<T>,
comment: Option<T>
) -> Contactwhere
T: AsRef<str>,
pub fn set_name<T>(&mut self, name: T)where
T: AsRef<str>,
pub fn set_email<T>(&mut self, email: T)where
T: AsRef<str>,
pub fn set_comment<T>(&mut self, comment: T)where
T: AsRef<str>,
pub fn any_some(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Contact
impl Send for Contact
impl Sync for Contact
impl Unpin for Contact
impl UnwindSafe for Contact
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more