pub enum ToHtmlError {
Parser {
message: String,
details: ParserError,
},
Render {
message: String,
},
}Variants§
Trait Implementations§
Source§impl Debug for ToHtmlError
impl Debug for ToHtmlError
Source§impl<'de> Deserialize<'de> for ToHtmlError
impl<'de> Deserialize<'de> for ToHtmlError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Error> for ToHtmlError
impl From<Error> for ToHtmlError
Source§impl From<Error> for ToHtmlError
impl From<Error> for ToHtmlError
Source§impl From<ToHtmlError> for JsValuewhere
ToHtmlError: Serialize,
impl From<ToHtmlError> for JsValuewhere
ToHtmlError: Serialize,
Source§fn from(value: ToHtmlError) -> Self
fn from(value: ToHtmlError) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &ToHtmlErrorwhere
ToHtmlError: Serialize,
impl IntoWasmAbi for &ToHtmlErrorwhere
ToHtmlError: Serialize,
Source§impl IntoWasmAbi for ToHtmlErrorwhere
ToHtmlError: Serialize,
impl IntoWasmAbi for ToHtmlErrorwhere
ToHtmlError: Serialize,
Source§impl OptionIntoWasmAbi for ToHtmlErrorwhere
ToHtmlError: Serialize,
impl OptionIntoWasmAbi for ToHtmlErrorwhere
ToHtmlError: Serialize,
Source§impl Serialize for ToHtmlError
impl Serialize for ToHtmlError
Source§impl Tsify for ToHtmlError
impl Tsify for ToHtmlError
const DECL: &'static str = "export type ToHtmlError = { origin: \"parser\"; message: string; details: ParserError } | { origin: \"render\"; message: string };"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorIntoWasmAbi for ToHtmlErrorwhere
ToHtmlError: Serialize,
impl VectorIntoWasmAbi for ToHtmlErrorwhere
ToHtmlError: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribeVector for ToHtmlError
impl WasmDescribeVector for ToHtmlError
Auto Trait Implementations§
impl Freeze for ToHtmlError
impl RefUnwindSafe for ToHtmlError
impl Send for ToHtmlError
impl Sync for ToHtmlError
impl Unpin for ToHtmlError
impl UnwindSafe for ToHtmlError
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.