Skip to main content

agentmail/types/
organizations.rs

1use serde::Deserialize;
2
3/// The organization the current API key belongs to, from
4/// [`Client::get_organization`](crate::Client::get_organization).
5#[derive(Clone, Debug, Deserialize)]
6pub struct Organization {
7    /// Unique organization id.
8    pub organization_id: String,
9    /// Current number of inboxes.
10    #[serde(default)]
11    pub inbox_count: Option<i64>,
12    /// Current number of domains.
13    #[serde(default)]
14    pub domain_count: Option<i64>,
15    /// Maximum inboxes allowed on the plan.
16    #[serde(default)]
17    pub inbox_limit: Option<i64>,
18    /// Maximum domains allowed on the plan.
19    #[serde(default)]
20    pub domain_limit: Option<i64>,
21    /// Billing plan type, when set.
22    #[serde(default)]
23    pub billing_type: Option<String>,
24    /// Authentication provider type, when set.
25    #[serde(default)]
26    pub authentication_type: Option<String>,
27    /// When the organization was last updated (RFC 3339).
28    #[serde(default)]
29    pub updated_at: Option<String>,
30    /// When the organization was created (RFC 3339).
31    #[serde(default)]
32    pub created_at: Option<String>,
33}