Expand description
GuerrillaMail Rust Client
An async Rust client for the GuerrillaMail temporary email service.
§Example
use guerrillamail::Client;
#[tokio::main]
async fn main() -> Result<(), guerrillamail::Error> {
let client = Client::new().await?;
let email = client.create_email("myalias").await?;
println!("Created: {}", email);
let messages = client.get_messages(&email).await?;
for msg in messages {
println!("From: {}, Subject: {}", msg.mail_from, msg.mail_subject);
}
client.delete_email(&email).await?;
Ok(())
}Structs§
- Client
- Async client for GuerrillaMail temporary email service.
- Client
Builder - Builder for configuring a GuerrillaMail client.
- Email
Details - Full email details including body content.
- Message
- An email message from GuerrillaMail.
Enums§
- Error
- Errors that can occur during GuerrillaMail operations.
Type Aliases§
- Result
- Result type alias for GuerrillaMail operations.