pub struct Response {
pub id: Id,
pub result_or_error: ResponseResult,
}
Expand description
A JSON RPC response, version 2.0. Only one of ‘result’ or ‘error’ is defined.
Fields§
§id: Id
§result_or_error: ResponseResult
Implementations§
Trait Implementations§
Source§impl Deserialize for Response
impl Deserialize for Response
Source§fn deserialize<DE>(deserializer: &mut DE) -> Result<Self, DE::Error>where
DE: Deserializer,
fn deserialize<DE>(deserializer: &mut DE) -> Result<Self, DE::Error>where
DE: Deserializer,
Deserialize this value given this
Deserializer
.impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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