Trait JsonRpcRequest
jsonrpc_sdk_prelude
pub trait JsonRpcRequest where Self: TryInto<Params> + Sized, { type Output: TryFrom<Value>; fn method() -> &'static str; fn to_string(self, c: CommonPart) -> Result<String> { ... } fn to_single_request(self, c: CommonPart) -> Result<Request> { ... } fn to_call(self, c: CommonPart) -> Result<Call> { ... } fn parse_single_response(response: Response) -> Result<Self::Output> { ... } }
type Output: TryFrom<Value>
fn method() -> &'static str
fn to_string(self, c: CommonPart) -> Result<String>
fn to_single_request(self, c: CommonPart) -> Result<Request>
fn to_call(self, c: CommonPart) -> Result<Call>
fn parse_single_response(response: Response) -> Result<Self::Output>