pub struct ArrayParams { /* private fields */ }
Expand description
Parameter builder to build valid “array” or “unnamed” JSON-RPC parameters.
This is the equivalent of a JSON array like [ value0, value1, .., valueN ]
.
§Examples
use thin_jsonrpc_client::params::ArrayParams;
let params = ArrayParams::new()
.insert("param1")
.insert(1);
// Use RPC parameters...
Implementations§
Source§impl ArrayParams
impl ArrayParams
Trait Implementations§
Source§impl Clone for ArrayParams
impl Clone for ArrayParams
Source§fn clone(&self) -> ArrayParams
fn clone(&self) -> ArrayParams
Returns a duplicate 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 moreSource§impl Debug for ArrayParams
impl Debug for ArrayParams
Source§impl IntoRpcParams for ArrayParams
impl IntoRpcParams for ArrayParams
Source§fn into_rpc_params(self) -> RpcParams
fn into_rpc_params(self) -> RpcParams
Return the params. These are expected to be encoded to JSON,
and take the form of either an array or object of parameters.
Can return
None
to avoid allocation when returning no parameters.Auto Trait Implementations§
impl Freeze for ArrayParams
impl RefUnwindSafe for ArrayParams
impl Send for ArrayParams
impl Sync for ArrayParams
impl Unpin for ArrayParams
impl UnwindSafe for ArrayParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more