Struct mml::message::compiler::MmlCompilerBuilder
source · pub struct MmlCompilerBuilder {
mml_body_compiler: MmlBodyCompiler,
}
Available on crate feature
compiler
only.Expand description
MML → MIME message compiler builder.
The compiler follows the builder pattern, where the build function
is named compile
.
Fields§
§mml_body_compiler: MmlBodyCompiler
The internal MML to MIME message body compiler.
Implementations§
source§impl MmlCompilerBuilder
impl MmlCompilerBuilder
sourcepub fn set_pgp(&mut self, pgp: impl Into<Pgp>)
Available on crate feature pgp
only.
pub fn set_pgp(&mut self, pgp: impl Into<Pgp>)
pgp
only.Customize PGP.
sourcepub fn with_pgp(self, pgp: impl Into<Pgp>) -> Self
Available on crate feature pgp
only.
pub fn with_pgp(self, pgp: impl Into<Pgp>) -> Self
pgp
only.Customize PGP.
sourcepub fn set_some_pgp(&mut self, pgp: Option<impl Into<Pgp>>)
Available on crate feature pgp
only.
pub fn set_some_pgp(&mut self, pgp: Option<impl Into<Pgp>>)
pgp
only.Customize some PGP.
sourcepub fn with_some_pgp(self, pgp: Option<impl Into<Pgp>>) -> Self
Available on crate feature pgp
only.
pub fn with_some_pgp(self, pgp: Option<impl Into<Pgp>>) -> Self
pgp
only.Customize some PGP.
sourcepub fn build(self, mml_msg: &str) -> Result<MmlCompiler<'_>>
pub fn build(self, mml_msg: &str) -> Result<MmlCompiler<'_>>
Build the final MmlCompiler based on the defined options.
Trait Implementations§
source§impl Clone for MmlCompilerBuilder
impl Clone for MmlCompilerBuilder
source§fn clone(&self) -> MmlCompilerBuilder
fn clone(&self) -> MmlCompilerBuilder
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 MmlCompilerBuilder
impl Debug for MmlCompilerBuilder
source§impl Default for MmlCompilerBuilder
impl Default for MmlCompilerBuilder
source§fn default() -> MmlCompilerBuilder
fn default() -> MmlCompilerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MmlCompilerBuilder
impl !RefUnwindSafe for MmlCompilerBuilder
impl Send for MmlCompilerBuilder
impl Sync for MmlCompilerBuilder
impl Unpin for MmlCompilerBuilder
impl !UnwindSafe for MmlCompilerBuilder
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§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.
source§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,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§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
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§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.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.