Struct jsonrpsee_types::response::Response
source · pub struct Response<'a, T: Clone> {
pub jsonrpc: Option<TwoPointZero>,
pub payload: ResponsePayload<'a, T>,
pub id: Id<'a>,
}
Expand description
JSON-RPC response object as defined in the spec.
Fields§
§jsonrpc: Option<TwoPointZero>
JSON-RPC version.
payload: ResponsePayload<'a, T>
Payload which can be result or error.
id: Id<'a>
Request ID
Implementations§
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Response<'de, T>where
T: Deserialize<'de> + Clone,
impl<'de, T> Deserialize<'de> for Response<'de, T>where
T: Deserialize<'de> + Clone,
Auto Trait Implementations§
impl<'a, T> Freeze for Response<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Response<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Response<'a, T>
impl<'a, T> Sync for Response<'a, T>where
T: Sync,
impl<'a, T> Unpin for Response<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Response<'a, T>where
T: UnwindSafe + RefUnwindSafe,
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