pub struct Body {
pub text: String,
pub html: Option<String>,
pub text_from_html: Option<String>,
pub word_count: usize,
pub char_count: usize,
pub line_count: usize,
pub language: Option<String>,
pub has_attachments: bool,
pub signature: Option<String>,
pub content_without_signature: String,
}Expand description
Email body content
Fields§
§text: StringPlain text content
html: Option<String>HTML content (if available)
text_from_html: Option<String>Text extracted from HTML (if HTML-only email)
word_count: usizeWord count of text content
char_count: usizeCharacter count
line_count: usizeLine count
language: Option<String>Detected language
has_attachments: boolHas attachments indicator from content type
signature: Option<String>Signature block (if detected and separated)
content_without_signature: StringMain content without signature
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Body
impl<'de> Deserialize<'de> for Body
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more