temp_mail_org 0.1.0

Rust client of https://temp-mail.org to create disposable email.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

/// Errors returned by temp-mail.org API operations.
#[derive(Debug, Error)]
pub enum Error {
    /// An underlying HTTP or protocol error from `reqwest`.
    #[error(transparent)]
    Reqwest(#[from] reqwest::Error),
    /// The mailbox token could not be placed in an HTTP header because it contained non-ASCII characters.
    #[error("mailbox token contains non-ASCII characters: {0}")]
    NonAsciiMailboxToken(String),
}