pub struct EmailMetadata {
pub spam_score: f32,
pub spam_indicators: Vec<SpamIndicator>,
pub urgency: Urgency,
pub category_hints: Vec<CategoryHint>,
pub is_automated: bool,
pub is_mailing_list: bool,
pub sentiment: Sentiment,
}Expand description
Email metadata and analysis results
Fields§
§spam_score: f32Spam indicators score (0.0 = clean, 1.0 = spam)
spam_indicators: Vec<SpamIndicator>List of spam indicators found
urgency: UrgencyUrgency indicators
category_hints: Vec<CategoryHint>Email category hints
is_automated: boolIs this likely automated/bulk mail?
is_mailing_list: boolIs this from a mailing list?
sentiment: SentimentSentiment hints (positive, negative, neutral)
Trait Implementations§
Source§impl Clone for EmailMetadata
impl Clone for EmailMetadata
Source§fn clone(&self) -> EmailMetadata
fn clone(&self) -> EmailMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmailMetadata
impl Debug for EmailMetadata
Source§impl<'de> Deserialize<'de> for EmailMetadata
impl<'de> Deserialize<'de> for EmailMetadata
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 EmailMetadata
impl RefUnwindSafe for EmailMetadata
impl Send for EmailMetadata
impl Sync for EmailMetadata
impl Unpin for EmailMetadata
impl UnwindSafe for EmailMetadata
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