pub struct Message {
pub id: usize,
pub from: String,
pub subject: String,
pub timestamp: DateTime<Utc>,
pub attachments: Vec<Attachment>,
pub body: String,
pub text_body: String,
pub html_body: Option<String>,
}Expand description
Represents an email message received in the temporary email inbox.
Fields§
§id: usizeThe unique identifier of the message.
from: StringThe sender’s email address.
subject: StringThe subject of the email.
timestamp: DateTime<Utc>The timestamp when the email was received.
attachments: Vec<Attachment>A vector of TempmailAttachment representing attachments in the email.
body: StringThe full body of the email, including both text and HTML content.
text_body: StringThe text-only content of the email body.
html_body: Option<String>Optional HTML content of the email body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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
Source§impl Ord for Message
impl Ord for Message
Source§impl PartialOrd for Message
impl PartialOrd for Message
impl Eq for Message
impl Send for Message
impl StructuralPartialEq for Message
impl Sync for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Unpin for Message
impl UnwindSafe for Message
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.