pub struct Client {
pub client: Client,
pub account_id: String,
pub email_address: String,
/* private fields */
}
Expand description
Client for https://mail.tm/
Fields§
§client: Client
§account_id: String
§email_address: String
Implementations§
Source§impl Client
impl Client
pub async fn new( account_credentials: &AccountCredentials, ) -> Result<Self, Box<dyn Error>>
pub async fn request_latest_message_html( &self, ) -> Result<Option<Html>, Box<dyn Error>>
pub async fn delete(&self) -> Result<(), Box<dyn Error>>
pub async fn get_domains() -> Result<Vec<String>, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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