pub struct MmlCompileResult<'a> { /* private fields */ }
Available on crate feature
compiler
only.Expand description
MML → MIME message compilation result.
This structure allows users to choose the final form of the desired MIME message: MessageBuilder, Vec, String etc.
Implementations§
Source§impl<'a> MmlCompileResult<'a>
impl<'a> MmlCompileResult<'a>
Sourcepub fn as_msg_builder(&self) -> &MessageBuilder<'_>
pub fn as_msg_builder(&self) -> &MessageBuilder<'_>
Return a reference to the final MIME message builder.
Sourcepub fn to_msg_builder(&self) -> MessageBuilder<'_>
pub fn to_msg_builder(&self) -> MessageBuilder<'_>
Return a copy of the final MIME message builder.
Sourcepub fn into_msg_builder(self) -> MessageBuilder<'a>
pub fn into_msg_builder(self) -> MessageBuilder<'a>
Return the final MIME message builder.
Sourcepub fn into_string(self) -> Result<String>
pub fn into_string(self) -> Result<String>
Return the final MIME message as a String.
Trait Implementations§
Source§impl<'a> Clone for MmlCompileResult<'a>
impl<'a> Clone for MmlCompileResult<'a>
Source§fn clone(&self) -> MmlCompileResult<'a>
fn clone(&self) -> MmlCompileResult<'a>
Returns a duplicate 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<'a> Debug for MmlCompileResult<'a>
impl<'a> Debug for MmlCompileResult<'a>
Source§impl<'a> Default for MmlCompileResult<'a>
impl<'a> Default for MmlCompileResult<'a>
Source§fn default() -> MmlCompileResult<'a>
fn default() -> MmlCompileResult<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for MmlCompileResult<'a>
impl<'a> RefUnwindSafe for MmlCompileResult<'a>
impl<'a> Send for MmlCompileResult<'a>
impl<'a> Sync for MmlCompileResult<'a>
impl<'a> Unpin for MmlCompileResult<'a>
impl<'a> UnwindSafe for MmlCompileResult<'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