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 JsValuewhere
ToHtmlResult: Serialize,
impl From<ToHtmlResult> for JsValuewhere
ToHtmlResult: Serialize,
Source§fn from(value: ToHtmlResult) -> Self
fn from(value: ToHtmlResult) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &ToHtmlResultwhere
ToHtmlResult: Serialize,
impl IntoWasmAbi for &ToHtmlResultwhere
ToHtmlResult: Serialize,
Source§impl IntoWasmAbi for ToHtmlResultwhere
ToHtmlResult: Serialize,
impl IntoWasmAbi for ToHtmlResultwhere
ToHtmlResult: Serialize,
Source§impl OptionIntoWasmAbi for ToHtmlResultwhere
ToHtmlResult: Serialize,
impl OptionIntoWasmAbi for ToHtmlResultwhere
ToHtmlResult: Serialize,
Source§impl Serialize for ToHtmlResult
impl Serialize for ToHtmlResult
Source§impl Tsify for ToHtmlResult
impl Tsify for ToHtmlResult
const DECL: &'static str = "export type ToHtmlResult = { type: \"success\"; content: string; warnings: Warning[] } | ({ type: \"error\" } & ToHtmlError);"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
Source§impl VectorIntoWasmAbi for ToHtmlResultwhere
ToHtmlResult: Serialize,
impl VectorIntoWasmAbi for ToHtmlResultwhere
ToHtmlResult: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for ToHtmlResult
impl WasmDescribeVector 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::AbiSource§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.