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.

Provided Methods

Serialize the type as a JSON array.

Implementations on Foreign Types

Implementors