Struct json_rpc2::Response[][src]

pub struct Response { /* fields omitted */ }

JSON-RPC response.

Implementations

impl Response[src]

pub fn id(&self) -> &Option<Value>[src]

The id for the response.

pub fn result(&self) -> &Option<Value>[src]

The result for the response.

pub fn error(&self) -> &Option<RpcError>[src]

The error for the response.

Trait Implementations

impl Debug for Response[src]

impl<'de> Deserialize<'de> for Response[src]

impl Eq for Response[src]

impl<'a> From<&'a mut Request> for Response[src]

impl<'a> From<(&'a mut Request, Value)> for Response[src]

impl Into<Option<RpcError>> for Response[src]

impl Into<Option<Value>> for Response[src]

impl Into<Response> for Error[src]

impl PartialEq<Response> for Response[src]

impl Serialize for Response[src]

impl StructuralEq for Response[src]

impl StructuralPartialEq for Response[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,