Struct emailmessage::Message
source · pub struct Message<B = Body> { /* private fields */ }
Expand description
Email message which can be formatted or streamed
Implementations
sourceimpl Message<()>
impl Message<()>
sourcepub fn builder() -> MessageBuilder
pub fn builder() -> MessageBuilder
Create a new message builder without headers
sourcepub fn create() -> MessageBuilder
pub fn create() -> MessageBuilder
Constructs a default message builder with date header which filled using current local time
sourceimpl<B> Message<B>
impl<B> Message<B>
sourcepub fn headers_mut(&mut self) -> &mut Headers
pub fn headers_mut(&mut self) -> &mut Headers
Get a mutable reference to the headers
sourcepub fn into_stream(self) -> MessageStream<B>where
B: Payload,
pub fn into_stream(self) -> MessageStream<B>where
B: Payload,
Converts message into stream
Trait Implementations
Auto Trait Implementations
impl<B = Body> !RefUnwindSafe for Message<B>
impl<B> Send for Message<B>where
B: Send,
impl<B = Body> !Sync for Message<B>
impl<B> Unpin for Message<B>where
B: Unpin,
impl<B = Body> !UnwindSafe for Message<B>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more