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
//! Lettermint is an HTTP client-agnostic Rust client for the Lettermint email service.
//!
//! It provides a `reqwest` implementation that can be initialized and passed
//! into the execute function of a [`Query`]. All [`Endpoint`] types implement
//! the Query trait.
//!
//! To use the [`reqwest`] based client, enable the `"reqwest"` feature.
//! You can also implement your own client by implementing the [`Client`] trait.
//!
//! # Example:
//! ```
//! use lettermint_rs::reqwest::LettermintClient;
//! use lettermint_rs::*;
//!
//! # async fn send_email() {
//! let client = LettermintClient::builder()
//! .api_token("your-api-token")
//! .build();
//!
//! let req = api::email::SendEmailRequest::builder()
//! .from("sender@example.com")
//! .to(vec!["recipient@example.com".into()])
//! .subject("Hello")
//! .html("<h1>Welcome!</h1>")
//! .build();
//!
//! let resp = req.execute(&client).await;
//! # }
//! ```
/// Default Lettermint API URL.
pub const LETTERMINT_API_URL: &str = "https://api.lettermint.co/v1/";
pub use *;
pub use ;