pub struct MailMessage { /* private fields */ }Expand description
A structure that contains an e-mail subject and its raw content which the decode_content() method can decode.
Implementations§
Source§impl MailMessage
impl MailMessage
Sourcepub fn get_subject(&self) -> &str
pub fn get_subject(&self) -> &str
Gets the message’s subject.
Sourcepub fn decode_content(&self) -> Result<String, Error>
pub fn decode_content(&self) -> Result<String, Error>
Decodes the raw content’s html entities.
Sourcepub fn get_raw_content(&self) -> &str
pub fn get_raw_content(&self) -> &str
Gets the message’s raw html content with potential html entities still encoded.
Trait Implementations§
Source§impl Debug for MailMessage
impl Debug for MailMessage
Source§impl<'de> Deserialize<'de> for MailMessage
impl<'de> Deserialize<'de> for MailMessage
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 MailMessage
impl RefUnwindSafe for MailMessage
impl Send for MailMessage
impl Sync for MailMessage
impl Unpin for MailMessage
impl UnwindSafe for MailMessage
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