Trait jsonrpsee_core::traits::ToRpcParams
source · pub trait ToRpcParams: Serialize {
fn to_rpc_params(&self) -> Result<Box<RawValue>, Error> { ... }
}
Expand description
Marker trait for types that can be serialized as JSON array/sequence.
If your type isn’t a sequence, for example String
, usize
or similar
you must insert it in a tuple, slice, array or Vec for it to work.