pub enum MessageAttachment<'x> {
Parsed(Box<Message<'x>>),
Raw(Cow<'x, [u8]>),
}
Expand description
Contents of an e-mail message attachment.
Variants§
Implementations§
Source§impl<'x> MessageAttachment<'x>
impl<'x> MessageAttachment<'x>
Sourcepub fn get_message(&'x self) -> Option<Cow<'x, Message<'x>>>
pub fn get_message(&'x self) -> Option<Cow<'x, Message<'x>>>
Get nested message
Trait Implementations§
Source§impl<'x> Clone for MessageAttachment<'x>
impl<'x> Clone for MessageAttachment<'x>
Source§fn clone(&self) -> MessageAttachment<'x>
fn clone(&self) -> MessageAttachment<'x>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'x> Debug for MessageAttachment<'x>
impl<'x> Debug for MessageAttachment<'x>
Source§impl<'x> Default for MessageAttachment<'x>
impl<'x> Default for MessageAttachment<'x>
Source§impl<'x, 'de> Deserialize<'de> for MessageAttachment<'x>
impl<'x, 'de> Deserialize<'de> for MessageAttachment<'x>
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<'x> PartialEq for MessageAttachment<'x>
impl<'x> PartialEq for MessageAttachment<'x>
Source§impl<'x> Serialize for MessageAttachment<'x>
impl<'x> Serialize for MessageAttachment<'x>
impl<'x> StructuralPartialEq for MessageAttachment<'x>
Auto Trait Implementations§
impl<'x> Freeze for MessageAttachment<'x>
impl<'x> RefUnwindSafe for MessageAttachment<'x>
impl<'x> Send for MessageAttachment<'x>
impl<'x> Sync for MessageAttachment<'x>
impl<'x> Unpin for MessageAttachment<'x>
impl<'x> UnwindSafe for MessageAttachment<'x>
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