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
45
46
47
48
49
//! # ffrelay-api
//!
//! A Rust API client library for [Firefox Relay](https://relay.firefox.com),
//! Mozilla's email forwarding service that helps protect your privacy by creating
//! email aliases that forward to your real email address.
//!
//! ## Features
//!
//! - Create random or custom domain email aliases
//! - List all your email relays
//! - Delete email relays
//! - Retrieve profile information
//! - Support for both standard relays and domain relays
//!
//! ## Quick Start
//!
//! ```no_run
//! use ffrelay_api::api::FFRelayApi;
//! use ffrelay_api::types::FirefoxEmailRelayRequest;
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! // Initialize the API client with your Firefox Relay token
//! let api = FFRelayApi::new("your-api-token-here");
//!
//! // Create a new random email relay
//! let request = FirefoxEmailRelayRequest::builder()
//! .description("My new relay".to_string())
//! .build();
//! let email = api.create(request).await?;
//! println!("Created relay: {}", email);
//!
//! // List all relays
//! let relays = api.list().await?;
//! for relay in relays {
//! println!("{}: {}", relay.id, relay.full_address);
//! }
//! # Ok(())
//! # }
//! ```
//!
//! ## Getting Your API Token
//!
//! 1. Go to [Firefox Relay](https://relay.firefox.com)
//! 2. Sign in with your Firefox Account
//! 3. Navigate to the API settings to generate your token