pub struct EmailAccount { /* private fields */ }
Implementations§
Source§impl EmailAccount
impl EmailAccount
pub fn new(email: String, password: String) -> EmailAccount
pub fn add_service(&mut self, service: String)
pub fn remove_service(&mut self, service: String)
pub fn get_services(&self) -> Vec<String>
pub fn get_email(&self) -> String
pub fn get_password(&self) -> String
Trait Implementations§
Source§impl Clone for EmailAccount
impl Clone for EmailAccount
Source§fn clone(&self) -> EmailAccount
fn clone(&self) -> EmailAccount
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for EmailAccount
impl<'de> Deserialize<'de> for EmailAccount
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
Auto Trait Implementations§
impl Freeze for EmailAccount
impl RefUnwindSafe for EmailAccount
impl Send for EmailAccount
impl Sync for EmailAccount
impl Unpin for EmailAccount
impl UnwindSafe for EmailAccount
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