interplane.Get Omega
Read in your language

aien-sovereign-core

Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core / crates / spark-mail-rs / src / models.rs

40 lines · 1004 bytes Raw Blame History
1use serde::{Deserialize, Serialize};
2use std::collections::HashMap;
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct EmailMessage {
6 pub id: String,
7 pub from: String,
8 pub to: Vec<String>,
9 pub subject: String,
10 pub body: String,
11 #[serde(default)]
12 pub headers: HashMap<String, String>,
13 pub received_at: String,
14 pub folder: String,
15 #[serde(default)]
16 pub cortex_indexed: bool,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
20pub struct SendEmailRequest {
21 pub to: Vec<String>,
22 pub subject: String,
23 pub body: String,
24 #[serde(default)]
25 pub from: Option<String>,
26}
27
28#[derive(Debug, Clone, Serialize, Deserialize)]
29pub struct MailboxStatus {
30 pub inbox_count: usize,
31 pub sent_count: usize,
32 pub archive_count: usize,
33 pub drafts_count: usize,
34 pub storage_path: String,
35 pub smtp_port: u16,
36 pub api_port: u16,
37 pub cortex_connected: bool,
38 pub proton_bridge_detected: bool,
39 pub operator_email: String,
40}