Skip to main content

RequestExt

Trait RequestExt 

Source
pub trait RequestExt {
    // Required methods
    fn new(id: u64, method: impl Into<String>) -> Request;
    fn with_params(id: u64, method: impl Into<String>, params: Value) -> Request;
}
Expand description

CLI-specific convenience methods for Request

Required Methods§

Source

fn new(id: u64, method: impl Into<String>) -> Request

Create a new request

Source

fn with_params(id: u64, method: impl Into<String>, params: Value) -> Request

Create a request with parameters

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§