pub enum JsonRpcAnswer {
Result(Value),
Error(JsonRpcError),
}
Expand description
JsonRpc response object
Variants§
Result(Value)
Error(JsonRpcError)
Trait Implementations§
Source§impl Clone for JsonRpcAnswer
impl Clone for JsonRpcAnswer
Source§fn clone(&self) -> JsonRpcAnswer
fn clone(&self) -> JsonRpcAnswer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JsonRpcAnswer
impl Debug for JsonRpcAnswer
Source§impl<'de> Deserialize<'de> for JsonRpcAnswer
impl<'de> Deserialize<'de> for JsonRpcAnswer
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 PartialEq for JsonRpcAnswer
impl PartialEq for JsonRpcAnswer
Source§impl Serialize for JsonRpcAnswer
impl Serialize for JsonRpcAnswer
impl StructuralPartialEq for JsonRpcAnswer
Auto Trait Implementations§
impl Freeze for JsonRpcAnswer
impl RefUnwindSafe for JsonRpcAnswer
impl Send for JsonRpcAnswer
impl Sync for JsonRpcAnswer
impl Unpin for JsonRpcAnswer
impl UnwindSafe for JsonRpcAnswer
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