Struct jsonrpsee_http_client::v2::request::JsonRpcCallSer[][src]

pub struct JsonRpcCallSer<'a> {
    pub jsonrpc: TwoPointZero,
    pub method: &'a str,
    pub id: Id,
    pub params: JsonRpcParams<'a>,
}

Serializable JSON-RPC object

Fields

jsonrpc: TwoPointZero

JSON-RPC version.

method: &'a str

Name of the method to be invoked.

id: Id

Request ID

params: JsonRpcParams<'a>

Parameter values of the request.

Implementations

impl<'a> JsonRpcCallSer<'a>[src]

pub fn new(
    id: Id,
    method: &'a str,
    params: JsonRpcParams<'a>
) -> JsonRpcCallSer<'a>
[src]

Create a new serializable JSON-RPC request.

Trait Implementations

impl<'a> Debug for JsonRpcCallSer<'a>[src]

impl<'a> Serialize for JsonRpcCallSer<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for JsonRpcCallSer<'a>

impl<'a> Send for JsonRpcCallSer<'a>

impl<'a> Sync for JsonRpcCallSer<'a>

impl<'a> Unpin for JsonRpcCallSer<'a>

impl<'a> UnwindSafe for JsonRpcCallSer<'a>

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> From<T> for T[src]

impl<T> Instrument 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.