pub struct ObjectParams(/* private fields */);
Expand description
Parameter builder that serializes named value parameters to a JSON compatible string.
This is the equivalent of a JSON Map object { key: value }
.
§Examples
use jsonrpsee_core::params::ObjectParams;
let mut builder = ObjectParams::new();
builder.insert("param1", 1);
builder.insert("param2", "abc");
// Use RPC parameters...
Implementations§
Trait Implementations§
source§impl Clone for ObjectParams
impl Clone for ObjectParams
source§fn clone(&self) -> ObjectParams
fn clone(&self) -> ObjectParams
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 ObjectParams
impl Debug for ObjectParams
source§impl Default for ObjectParams
impl Default for ObjectParams
source§impl ToRpcParams for ObjectParams
impl ToRpcParams for ObjectParams
Auto Trait Implementations§
impl Freeze for ObjectParams
impl RefUnwindSafe for ObjectParams
impl Send for ObjectParams
impl Sync for ObjectParams
impl Unpin for ObjectParams
impl UnwindSafe for ObjectParams
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
)