use serde::{Deserialize, Serialize};
use crate::part::{ParsedHeader, ParsedPart};
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct ParsedMessage {
pub part_index: ParsedPart,
pub text_body: Vec<String>,
pub html_body: Vec<String>,
pub attachments: Vec<String>,
pub headers: Vec<ParsedHeader>,
pub preview: Option<String>,
pub warnings: Vec<String>,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct DecodedBodyValue {
pub value: String,
pub is_truncated: bool,
pub is_encoding_problem: bool,
}