pub struct MessageBuilder { /* private fields */ }Implementations§
Source§impl MessageBuilder
impl MessageBuilder
pub fn new() -> Self
pub fn flags<F: IntoIterator<Item = Flag>>(self, flags: F) -> Self
pub fn flag(self, flag: Flag) -> Self
pub fn senders<C: Into<Address>>(self, sender: C) -> Self
pub fn recipients<C: Into<Address>>(self, recipient: C) -> Self
pub fn cc<C: Into<Address>>(self, cc: C) -> Self
pub fn bcc<C: Into<Address>>(self, bcc: C) -> Self
pub fn id<I: Display>(self, id: I) -> Self
pub fn sent(self, sent: i64) -> Self
pub fn subject<S: Display>(self, subject: S) -> Self
pub fn headers(self, headers: Headers) -> Self
pub fn header<H: Into<String>, V: Display>(self, header: H, value: V) -> Self
pub fn html<H: Into<String>>(self, html: H) -> Self
pub fn text<H: Into<String>>(self, text: H) -> Self
pub fn build<T: TryFrom<Self>>(self) -> Result<T>
Trait Implementations§
Source§impl Debug for MessageBuilder
impl Debug for MessageBuilder
Source§impl TryFrom<&[u8]> for MessageBuilder
impl TryFrom<&[u8]> for MessageBuilder
Source§impl TryFrom<MailEntry> for MessageBuilder
Available on crate feature maildir only.
impl TryFrom<MailEntry> for MessageBuilder
Available on crate feature
maildir only.Source§impl TryFrom<MessageBuilder> for Message
impl TryFrom<MessageBuilder> for Message
Source§impl TryFrom<MessageBuilder> for Preview
impl TryFrom<MessageBuilder> for Preview
Source§impl TryFrom<MessageBuilder> for SendableMessage
impl TryFrom<MessageBuilder> for SendableMessage
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
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