pub enum ToHtmlResult {
Success {
content: String,
warnings: Vec<Warning>,
},
Error(ToHtmlError),
}
Variants§
Implementations§
Source§impl ToHtmlResult
impl ToHtmlResult
pub fn into_success(self) -> String
Trait Implementations§
Source§impl Debug for ToHtmlResult
impl Debug for ToHtmlResult
Source§impl From<ToHtmlResult> for JsValue
impl From<ToHtmlResult> for JsValue
Source§fn from(value: ToHtmlResult) -> Self
fn from(value: ToHtmlResult) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for ToHtmlResultwhere
Self: Serialize,
impl IntoWasmAbi for ToHtmlResultwhere
Self: Serialize,
Source§impl OptionIntoWasmAbi for ToHtmlResultwhere
Self: Serialize,
impl OptionIntoWasmAbi for ToHtmlResultwhere
Self: Serialize,
Source§impl Serialize for ToHtmlResult
impl Serialize for ToHtmlResult
Source§impl Tsify for ToHtmlResult
impl Tsify for ToHtmlResult
Auto Trait Implementations§
impl Freeze for ToHtmlResult
impl RefUnwindSafe for ToHtmlResult
impl Send for ToHtmlResult
impl Sync for ToHtmlResult
impl Unpin for ToHtmlResult
impl UnwindSafe for ToHtmlResult
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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
.