pub struct TempMail { /* private fields */ }
Implementations§
Source§impl TempMail
impl TempMail
pub fn new() -> Self
pub async fn from_string<S>(email: S) -> Result<Self, Error>
pub fn get_email(&self) -> String
pub async fn generate_email(&mut self) -> Result<(), Error>
pub async fn get_domains() -> Result<Vec<String>, Error>
pub async fn get_adresses(count: Option<u32>) -> Result<Vec<String>, Error>
pub async fn check_inbox(&mut self) -> Result<(), Error>
pub async fn get_message_by_id(&mut self, id: usize) -> Result<Message, Error>
pub async fn download_attachment( &mut self, id: usize, filename: String, path: String, ) -> Result<(), Error>
pub fn get_messages_len(&self) -> usize
pub fn get_messages(&self) -> Vec<MailMessage>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempMail
impl !RefUnwindSafe for TempMail
impl Send for TempMail
impl Sync for TempMail
impl Unpin for TempMail
impl !UnwindSafe for TempMail
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