temporary_mail 0.1.2

Rust wrapper of 1secmail temporary mail service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod lib;

use lib::TempEmail;

fn main() {
    let temp_email = TempEmail::new();
    let adress = temp_email.get_address().to_string();
    println!("{}", adress);

    if let Some(emails) = temp_email.get_inbox() {
        emails.iter().for_each(|mail| println!("{:?}", mail));
    }
}