Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core/blob/main/crates/spark-mail-rs/src/models.rs # aien-sovereign-core Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-sovereign-core / crates / spark-mail-rs / src / models.rs` 40 lines ยท 1004 bytes Raw Blame History 1 use serde::{Deserialize, Serialize}; 2 use std::collections::HashMap; 3 4 #[derive(Debug, Clone, Serialize, Deserialize)] 5 pub struct EmailMessage { 6 pub id: String, 7 pub from: String, 8 pub to: Vec, 9 pub subject: String, 10 pub body: String, 11 #[serde(default)] 12 pub headers: HashMap, 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)] 20 pub struct SendEmailRequest { 21 pub to: Vec, 22 pub subject: String, 23 pub body: String, 24 #[serde(default)] 25 pub from: Option, 26 } 27 28 #[derive(Debug, Clone, Serialize, Deserialize)] 29 pub 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 }