Struct mml::MmlCompilerBuilder
source · pub struct MmlCompilerBuilder { /* private fields */ }
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
.
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<'a>(self, mml_msg: &'a str) -> Result<MmlCompiler<'a>>
pub fn build<'a>(self, mml_msg: &'a str) -> Result<MmlCompiler<'a>>
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 RefUnwindSafe for MmlCompilerBuilder
impl Send for MmlCompilerBuilder
impl Sync for MmlCompilerBuilder
impl Unpin for MmlCompilerBuilder
impl UnwindSafe for MmlCompilerBuilder
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<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.