pub struct MmlBodyCompiler { /* private fields */ }
Available on crate feature
compiler
only.Expand description
MML → MIME message body compiler.
The compiler follows the builder pattern, where the build function
is named compile
.
Implementations§
source§impl<'a> MmlBodyCompiler
impl<'a> MmlBodyCompiler
pub fn set_pgp(&mut self, pgp: impl Into<Pgp>)
Available on crate feature
pgp
only.pub fn with_pgp(self, pgp: impl Into<Pgp>) -> Self
Available on crate feature
pgp
only.pub fn set_some_pgp(&mut self, pgp: Option<impl Into<Pgp>>)
Available on crate feature
pgp
only.pub fn with_some_pgp(self, pgp: Option<impl Into<Pgp>>) -> Self
Available on crate feature
pgp
only.pub fn with_pgp_sender(self, sender: Option<String>) -> Self
Available on crate feature
pgp
only.pub fn with_pgp_recipients(self, recipients: Vec<String>) -> Self
Available on crate feature
pgp
only.sourcepub async fn compile(&'a self, mml_body: &'a str) -> Result<MessageBuilder<'_>>
pub async fn compile(&'a self, mml_body: &'a str) -> Result<MessageBuilder<'_>>
Compile the given raw MML body to MIME body.
Trait Implementations§
source§impl Clone for MmlBodyCompiler
impl Clone for MmlBodyCompiler
source§fn clone(&self) -> MmlBodyCompiler
fn clone(&self) -> MmlBodyCompiler
Returns a copy 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 Debug for MmlBodyCompiler
impl Debug for MmlBodyCompiler
source§impl Default for MmlBodyCompiler
impl Default for MmlBodyCompiler
source§fn default() -> MmlBodyCompiler
fn default() -> MmlBodyCompiler
Returns the “default value” for a type. Read more
source§impl PartialEq for MmlBodyCompiler
impl PartialEq for MmlBodyCompiler
source§fn eq(&self, other: &MmlBodyCompiler) -> bool
fn eq(&self, other: &MmlBodyCompiler) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MmlBodyCompiler
impl StructuralEq for MmlBodyCompiler
impl StructuralPartialEq for MmlBodyCompiler
Auto Trait Implementations§
impl RefUnwindSafe for MmlBodyCompiler
impl Send for MmlBodyCompiler
impl Sync for MmlBodyCompiler
impl Unpin for MmlBodyCompiler
impl UnwindSafe for MmlBodyCompiler
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.