agentmail-rs 0.2.1

Unofficial typed Rust client for AgentMail (agentmail.to), the email API for agents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Shared helpers and re-exported wiremock imports for the http test suite.

pub use wiremock::matchers::{body_json, header, method, path, query_param};
pub use wiremock::{Mock, MockServer, ResponseTemplate};

/// A `Client` pointed at a fresh mock server.
pub async fn client() -> (MockServer, agentmail::Client) {
    let server = MockServer::start().await;
    let client = agentmail::Client::new("test-key", server.uri());
    (server, client)
}