Struct rings_node::jsonrpc_client::client::SimpleClient
source · pub struct SimpleClient { /* private fields */ }Expand description
Create a new SimpleClient
- client: a instance of reqwest::Client
- url: remote jsonrpc_server url
Implementations§
source§impl SimpleClient
impl SimpleClient
sourcepub fn new(client: Arc<HttpClient>, url: &str) -> Self
pub fn new(client: Arc<HttpClient>, url: &str) -> Self
- client: reqwest::Client handle http request.
- url: remote json_server url.
sourcepub fn new_with_url(url: &str) -> Self
pub fn new_with_url(url: &str) -> Self
Create a new SimpleClient,
- url: remote jsonrpc_server url
Trait Implementations§
source§impl Clone for SimpleClient
impl Clone for SimpleClient
source§fn clone(&self) -> SimpleClient
fn clone(&self) -> SimpleClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more