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
//! # Unosend Rust SDK
//!
//! Official Rust SDK for [Unosend](https://unosend.co) - Email API for developers.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use unosend::{Unosend, SendEmailRequest};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = Unosend::new("un_your_api_key");
//!
//! let response = client.emails().send(SendEmailRequest {
//! from: "hello@yourdomain.com".into(),
//! to: "user@example.com".into(),
//! subject: "Welcome!".into(),
//! html: Some("<h1>Hello!</h1>".into()),
//! ..Default::default()
//! }).await?;
//!
//! println!("Email sent: {}", response.id);
//! Ok(())
//! }
//! ```
pub use Unosend;
pub use *;
pub use *;
pub use *;
pub use *;
pub use UnosendError;