pub enum ParseResponse {
Ok(Parsed),
Error(ParseError),
}Expand description
What the host function answers: {"ok": {…}} or {"error": {…}}.
Variants§
Ok(Parsed)
Error(ParseError)
Trait Implementations§
Source§impl Clone for ParseResponse
impl Clone for ParseResponse
Source§impl Debug for ParseResponse
impl Debug for ParseResponse
Source§impl<'de> Deserialize<'de> for ParseResponse
impl<'de> Deserialize<'de> for ParseResponse
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<ParseResponse> for Result<Parsed, ParseError>
impl From<ParseResponse> for Result<Parsed, ParseError>
Source§fn from(response: ParseResponse) -> Self
fn from(response: ParseResponse) -> Self
Converts to this type from the input type.
Source§impl From<Result<Parsed, ParseError>> for ParseResponse
impl From<Result<Parsed, ParseError>> for ParseResponse
Source§impl PartialEq for ParseResponse
impl PartialEq for ParseResponse
Source§impl Serialize for ParseResponse
impl Serialize for ParseResponse
impl StructuralPartialEq for ParseResponse
Auto Trait Implementations§
impl Forget for ParseResponse
impl Freeze for ParseResponse
impl Move for ParseResponse
impl RefUnwindSafe for ParseResponse
impl Send for ParseResponse
impl Sync for ParseResponse
impl Unpin for ParseResponse
impl UnsafeUnpin for ParseResponse
impl UnwindSafe for ParseResponse
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