Type Alias GenericRpcMethod

Source
pub type GenericRpcMethod = GenericRpcMethod<String, Value, Value>;

Aliased Type§

pub struct GenericRpcMethod { /* private fields */ }

Implementations

Source§

impl<Method, Params, Response> GenericRpcMethod<Method, Params, Response>
where Method: AsRef<str>,

Source

pub fn new(method: Method) -> GenericRpcMethod<Method, Params, Response>

Trait Implementations

Source§

impl<Method, Params, Response> Clone for GenericRpcMethod<Method, Params, Response>
where Method: AsRef<str> + Clone,

Source§

fn clone(&self) -> GenericRpcMethod<Method, Params, Response>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Method, Params, Response> Debug for GenericRpcMethod<Method, Params, Response>
where Method: AsRef<str>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de, Method, Params, Response> Deserialize<'de> for GenericRpcMethod<Method, Params, Response>
where Method: AsRef<str> + Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<GenericRpcMethod<Method, Params, Response>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<Method, Params, Response> RpcMethod for GenericRpcMethod<Method, Params, Response>
where Method: AsRef<str>,

Source§

type Params = Params

Source§

type Response = Response

Source§

fn as_str<'a>(&'a self) -> &'a str

Source§

impl<Method, Params, Response> Serialize for GenericRpcMethod<Method, Params, Response>
where Method: AsRef<str>,

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more