1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! A Rust client for creating disposable mailboxes with [temp-mail.org](https://temp-mail.org).
//!
//! The crate exposes a small, borrowed API centered around [`Client`], [`Mailbox`], and
//! [`Message`]. Typical usage is:
//!
//! 1. Create a [`Client`].
//! 2. Create a disposable [`Mailbox`].
//! 3. Poll [`Mailbox::list_messages`] for [`MessagePreview`] values.
//! 4. Convert a preview into a full [`Message`] with [`MessagePreview::to_message`].
//! 5. Get the attachments of a message with [`Message::get_attachment`].
//!
//! # Example
//! ```no_run
//! use temp_mail_org::{Client, Error};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), Error> {
//! let client = Client::new();
//! let mailbox = client.create_mailbox().await?;
//! println!("Mailbox: {}", mailbox.address());
//!
//! let message = mailbox.list_messages(None)
//! .await?
//! .into_iter()
//! .next()
//! .unwrap()
//! .to_message()
//! .await?;
//! println!("Received message from {}", message.subject());
//! #
//! # Ok(())
//! # }
//!
//! ```
pub use *;
pub use *;
pub use *;
pub use *;