pub struct ArrayParams(/* private fields */);
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 moresource§impl Debug for ArrayParams
impl Debug for ArrayParams
source§impl Default for ArrayParams
impl Default for ArrayParams
source§impl ToRpcParams for ArrayParams
impl ToRpcParams for ArrayParams
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)