use serde::{Deserialize, Serialize};
pub(super) mod errors;
pub(super) mod health;
mod count_emails;
mod delete_attachment;
mod delete_emails;
mod delete_inbox;
mod download_attachment;
mod get_domains;
mod get_email_attachments;
mod get_emails;
mod get_inbox;
mod get_inbox_attachments;
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Email {
pub id: String,
pub from_address: String,
pub to_address: String,
pub subject: String,
pub received_at: i64,
pub html_content: Option<String>,
pub text_content: Option<String>,
pub has_attachments: bool,
pub attachment_count: u32,
}
#[derive(Debug, Deserialize, Clone)]
pub struct Attachment {
pub content_type: String,
pub created_at: i64,
pub filename: String,
pub id: String,
pub size: u64,
}
#[derive(Debug, Deserialize, Clone)]
struct Error {
name: String,
#[serde(rename = "message")]
description: String,
}