pub struct Engine { /* private fields */ }
Implementations§
Source§impl Engine
impl Engine
pub fn new() -> Self
Sourcepub fn set_parser_options(&mut self, value: ParserOptions)
pub fn set_parser_options(&mut self, value: ParserOptions)
Defines the parsing options.
Sourcepub fn set_async_parser_options(&mut self, value: AsyncParserOptions)
pub fn set_async_parser_options(&mut self, value: AsyncParserOptions)
Defines the async parsing options.
Sourcepub fn set_render_options(&mut self, value: RenderOptions)
pub fn set_render_options(&mut self, value: RenderOptions)
Defines the rendering options.
Sourcepub fn to_html(&self, input: &str) -> ToHtmlResult
pub fn to_html(&self, input: &str) -> ToHtmlResult
Renders the mjml input into html.
Sourcepub async fn to_html_async(&self, input: &str) -> ToHtmlResult
pub async fn to_html_async(&self, input: &str) -> ToHtmlResult
Renders the mjml input into html.
Trait Implementations§
Source§impl FromWasmAbi for Engine
impl FromWasmAbi for Engine
Source§impl IntoWasmAbi for Engine
impl IntoWasmAbi for Engine
Source§impl LongRefFromWasmAbi for Engine
impl LongRefFromWasmAbi for Engine
Source§impl OptionFromWasmAbi for Engine
impl OptionFromWasmAbi for Engine
Source§impl OptionIntoWasmAbi for Engine
impl OptionIntoWasmAbi for Engine
Source§impl RefFromWasmAbi for Engine
impl RefFromWasmAbi for Engine
Source§impl RefMutFromWasmAbi for Engine
impl RefMutFromWasmAbi for Engine
Source§impl TryFromJsValue for Engine
impl TryFromJsValue for Engine
Source§impl VectorFromWasmAbi for Engine
impl VectorFromWasmAbi for Engine
Source§impl VectorIntoWasmAbi for Engine
impl VectorIntoWasmAbi for Engine
impl SupportsConstructor for Engine
impl SupportsInstanceProperty for Engine
impl SupportsStaticProperty for Engine
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl !Send for Engine
impl !Sync for Engine
impl Unpin for Engine
impl !UnwindSafe for Engine
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
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.