pub struct Subject {
pub original: String,
pub normalized: String,
pub reply_depth: u32,
pub is_forward: bool,
pub language: Option<String>,
}Expand description
Email subject with analysis
Fields§
§original: StringOriginal subject line
normalized: StringSubject without Re:/Fwd: prefixes
reply_depth: u32Number of Re: prefixes (indicates thread depth)
is_forward: boolIs this a forward?
language: Option<String>Detected language (ISO 639-1 code)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Subject
impl<'de> Deserialize<'de> for Subject
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 Subject
impl RefUnwindSafe for Subject
impl Send for Subject
impl Sync for Subject
impl Unpin for Subject
impl UnwindSafe for Subject
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