Struct jsonrpsee_core::params::ArrayParams
source · pub struct ArrayParams(_);
Expand description
Parameter builder that serializes plain value parameters to a JSON compatible string.
This is the equivalent of a JSON Array object [ value0, value1, .., valueN ]
.
Examples
use jsonrpsee_core::params::ArrayParams;
let mut builder = ArrayParams::new();
builder.insert("param1");
builder.insert(1);
// Use RPC parameters...
Implementations§
Trait Implementations§
source§impl Clone for ArrayParams
impl Clone for ArrayParams
source§fn clone(&self) -> ArrayParams
fn clone(&self) -> ArrayParams
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