Struct imap_proto::types::Envelope
source · pub struct Envelope<'a> {
pub date: Option<Cow<'a, [u8]>>,
pub subject: Option<Cow<'a, [u8]>>,
pub from: Option<Vec<Address<'a>>>,
pub sender: Option<Vec<Address<'a>>>,
pub reply_to: Option<Vec<Address<'a>>>,
pub to: Option<Vec<Address<'a>>>,
pub cc: Option<Vec<Address<'a>>>,
pub bcc: Option<Vec<Address<'a>>>,
pub in_reply_to: Option<Cow<'a, [u8]>>,
pub message_id: Option<Cow<'a, [u8]>>,
}
Expand description
An RFC 2822 envelope
See https://datatracker.ietf.org/doc/html/rfc2822#section-3.6 for more details.
Fields§
§date: Option<Cow<'a, [u8]>>
§subject: Option<Cow<'a, [u8]>>
§from: Option<Vec<Address<'a>>>
Author of the message; mailbox responsible for writing the message
sender: Option<Vec<Address<'a>>>
Mailbox of the agent responsible for the message’s transmission
reply_to: Option<Vec<Address<'a>>>
Mailbox that the author of the message suggests replies be sent to
to: Option<Vec<Address<'a>>>
§cc: Option<Vec<Address<'a>>>
§bcc: Option<Vec<Address<'a>>>
§in_reply_to: Option<Cow<'a, [u8]>>
§message_id: Option<Cow<'a, [u8]>>
Implementations§
Trait Implementations§
source§impl<'a> PartialEq for Envelope<'a>
impl<'a> PartialEq for Envelope<'a>
impl<'a> Eq for Envelope<'a>
impl<'a> StructuralPartialEq for Envelope<'a>
Auto Trait Implementations§
impl<'a> Freeze for Envelope<'a>
impl<'a> RefUnwindSafe for Envelope<'a>
impl<'a> Send for Envelope<'a>
impl<'a> Sync for Envelope<'a>
impl<'a> Unpin for Envelope<'a>
impl<'a> UnwindSafe for Envelope<'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