pub struct Message<'a> { /* private fields */ }Expand description
A full message received by a Mailbox.
Implementations§
Source§impl<'a> Message<'a>
impl<'a> Message<'a>
Sourcepub fn received_at(&self) -> Timestamp
pub fn received_at(&self) -> Timestamp
Returns when the message was received.
Sourcepub fn body_preview(&self) -> &str
pub fn body_preview(&self) -> &str
Returns the preview text for the message body.
Sourcepub fn attachments_count(&self) -> u32
pub fn attachments_count(&self) -> u32
Returns the number of attachments.
Sourcepub fn attachments(&self) -> &[AttachmentMetadata]
pub fn attachments(&self) -> &[AttachmentMetadata]
Returns all attachment metadata for the message.
Sourcepub fn created_at(&self) -> Timestamp
pub fn created_at(&self) -> Timestamp
Returns when the message was created.
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> !RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnsafeUnpin for Message<'a>
impl<'a> !UnwindSafe for Message<'a>
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