pub struct MethodResponse {
pub id: String,
pub result: Option<Value>,
pub error: Option<Value>,
}
Fields§
§id: String
§result: Option<Value>
§error: Option<Value>
Trait Implementations§
Source§impl Debug for MethodResponse
impl Debug for MethodResponse
Source§impl<'de> Deserialize<'de> for MethodResponse
impl<'de> Deserialize<'de> for MethodResponse
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 Into<Result<Value, RPCError>> for MethodResponse
impl Into<Result<Value, RPCError>> for MethodResponse
Source§fn into(self) -> MethodResult
fn into(self) -> MethodResult
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for MethodResponse
impl PartialEq for MethodResponse
Source§impl Serialize for MethodResponse
impl Serialize for MethodResponse
impl Eq for MethodResponse
impl StructuralPartialEq for MethodResponse
Auto Trait Implementations§
impl Freeze for MethodResponse
impl RefUnwindSafe for MethodResponse
impl Send for MethodResponse
impl Sync for MethodResponse
impl Unpin for MethodResponse
impl UnwindSafe for MethodResponse
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