pub struct Message {
pub message_id: String,
pub inbox_id: Option<String>,
pub thread_id: Option<String>,
pub from: Option<String>,
pub to: Vec<String>,
pub subject: Option<String>,
pub preview: Option<String>,
pub text: Option<String>,
pub html: Option<String>,
pub labels: Vec<String>,
pub timestamp: Option<String>,
pub attachments: Vec<Attachment>,
}Expand description
A message as the API returns it. List items are a subset of the full get-message shape; every non-id field defaults so both parse.
Fields§
§message_id: StringUnique id within the inbox.
inbox_id: Option<String>Inbox the message belongs to.
thread_id: Option<String>Conversation thread id.
from: Option<String>Sender address.
to: Vec<String>Recipient addresses.
subject: Option<String>Subject line.
preview: Option<String>Short plain-text excerpt (list responses).
text: Option<String>Full plain-text body (get responses).
html: Option<String>Full HTML body (get responses).
labels: Vec<String>Labels on the message (e.g. received, unread).
timestamp: Option<String>RFC 3339 send/receive timestamp.
attachments: Vec<Attachment>Attachments on the message (present in get-message responses).
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
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin 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