| Crates.io | temporary_mail |
| lib.rs | temporary_mail |
| version | 0.1.2 |
| created_at | 2022-02-23 14:05:08.371815+00 |
| updated_at | 2022-02-24 01:03:36.437147+00 |
| description | Rust wrapper of 1secmail temporary mail service |
| homepage | |
| repository | https://github.com/DILECPEDO/temporary_mail |
| max_upload_size | |
| id | 537882 |
| size | 32,666 |
use temporary_mail::TempMail;
let temp_mail = TempMail::new();
From TempMail you can retrieve:
println!("{}", temp_mail.get_address());
let emails: Option<Vec<Email>> = temp_mail.get_inbox()
// print received emails
if let Some(emails) = emails {
emails.iter().for_each(|mail| println!("{:?}", mail));
}