Struct emailmessage::MultiPart
source · pub struct MultiPart<B = Body> { /* private fields */ }
Expand description
Multipart variant with parts
Implementations
sourceimpl MultiPart<()>
impl MultiPart<()>
sourcepub fn builder() -> MultiPartBuilder
pub fn builder() -> MultiPartBuilder
Creates multipart builder
sourcepub fn mixed() -> MultiPartBuilder
pub fn mixed() -> MultiPartBuilder
Creates mixed multipart builder
Shortcut for MultiPart::builder().kind(MultiPartKind::Mixed)
sourcepub fn alternative() -> MultiPartBuilder
pub fn alternative() -> MultiPartBuilder
Creates alternative multipart builder
Shortcut for MultiPart::builder().kind(MultiPartKind::Alternative)
Creates related multipart builder
Shortcut for MultiPart::builder().kind(MultiPartKind::Related)
sourceimpl<B> MultiPart<B>
impl<B> MultiPart<B>
sourcepub fn singlepart(self, part: SinglePart<B>) -> Self
pub fn singlepart(self, part: SinglePart<B>) -> Self
Add single part to multipart
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) -> MultiPartStream<B>where
B: Payload,
pub fn into_stream(self) -> MultiPartStream<B>where
B: Payload,
Converts multipart into stream
Trait Implementations
Auto Trait Implementations
impl<B = Body> !RefUnwindSafe for MultiPart<B>
impl<B> Send for MultiPart<B>where
B: Send,
impl<B = Body> !Sync for MultiPart<B>
impl<B> Unpin for MultiPart<B>where
B: Unpin,
impl<B = Body> !UnwindSafe for MultiPart<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