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: usize
The unique identifier of the message.
from: String
The sender’s email address.
subject: String
The 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: String
The full body of the email, including both text and HTML content.
text_body: String
The 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 PartialEq for Message
impl PartialEq for Message
source§impl PartialOrd for Message
impl PartialOrd for Message
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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<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.