agentmail-rs 0.3.0

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
12
13
14
15
16
use crate::client::NoBody;
use crate::{Client, Error, types::*};

impl Client {
    /// GET /v0/organizations, the organization the current key belongs to,
    /// including its resource counts and plan limits.
    pub async fn get_organization(&self) -> Result<Organization, Error> {
        self.request(
            reqwest::Method::GET,
            "/v0/organizations",
            &[],
            None::<&NoBody>,
        )
        .await
    }
}