pub struct Response<'a, T, E> {
pub result: Result<T, Error<'a, E>>,
pub id: Id<'a>,
}
Expand description
A JSON-RPC 2.0 response.
Fields§
§result: Result<T, Error<'a, E>>
The outcome of the request.
id: Id<'a>
The ID of the request to which this repsonse is a reply.
Trait Implementations§
Source§impl<'de, 'a, T, E> Deserialize<'de> for Response<'a, T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
'de: 'a,
impl<'de, 'a, T, E> Deserialize<'de> for Response<'a, T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
'de: 'a,
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
Auto Trait Implementations§
impl<'a, T, E> Freeze for Response<'a, T, E>
impl<'a, T, E> RefUnwindSafe for Response<'a, T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, T, E> Send for Response<'a, T, E>
impl<'a, T, E> Sync for Response<'a, T, E>
impl<'a, T, E> Unpin for Response<'a, T, E>
impl<'a, T, E> UnwindSafe for Response<'a, T, E>where
T: UnwindSafe,
E: UnwindSafe,
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