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
//! Typed async Rust client for the [Mailisk](https://mailisk.com) API.
//!
//! Mailisk is an email, SMS, outbound email, and TOTP testing platform. This
//! crate mirrors the Mailisk Node and Python clients: the same endpoints, the
//! same search defaults, and request/response types that match the REST API's
//! JSON fields.
//!
//! ```no_run
//! # async fn run() -> mailisk::Result<()> {
//! use mailisk::{MailiskClient, SearchInboxParams};
//!
//! let mailisk = MailiskClient::new("YOUR_API_KEY")?;
//!
//! // Waits until an email arrives for this address (up to 5 minutes).
//! let result = mailisk
//! .search_inbox(
//! "mynamespace",
//! &SearchInboxParams {
//! to_addr_prefix: Some("john@mynamespace.mailisk.net".into()),
//! ..Default::default()
//! },
//! )
//! .await?;
//!
//! for email in result.data {
//! println!("{:?}", email.subject);
//! }
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use *;
/// Version of this crate.
pub const VERSION: &str = env!;