guerrillamail_client/models.rs
1//! Message model for GuerrillaMail.
2
3use serde::Deserialize;
4
5/// An email message from GuerrillaMail.
6#[derive(Debug, Clone, Deserialize)]
7pub struct Message {
8 /// Unique message ID.
9 pub mail_id: String,
10 /// Sender email address.
11 pub mail_from: String,
12 /// Email subject line.
13 pub mail_subject: String,
14 /// Short excerpt of the email body.
15 pub mail_excerpt: String,
16 /// Unix timestamp of when the email was received.
17 pub mail_timestamp: String,
18}
19
20/// Full email details including body content.
21#[derive(Debug, Clone, Deserialize)]
22pub struct EmailDetails {
23 /// Unique message ID.
24 pub mail_id: String,
25 /// Sender email address.
26 pub mail_from: String,
27 /// Email subject line.
28 pub mail_subject: String,
29 /// Full HTML body of the email.
30 pub mail_body: String,
31 /// Unix timestamp of when the email was received.
32 pub mail_timestamp: String,
33}