Struct jsonrpsee_types::response::Response
source · [−]pub struct Response<'a, T> {
pub jsonrpc: TwoPointZero,
pub result: T,
pub id: Id<'a>,
}Expand description
JSON-RPC successful response object as defined in the spec.
Fields
jsonrpc: TwoPointZeroJSON-RPC version.
result: TResult.
id: Id<'a>Request ID
Implementations
Trait Implementations
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> RefUnwindSafe for Response<'a, T> where
T: RefUnwindSafe,
impl<'a, T> UnwindSafe for Response<'a, T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more