Enum jsonrpsee_types::params::ParamsSer
source · pub enum ParamsSer<'a> {
Array(Vec<JsonValue>),
ArrayRef(&'a [JsonValue]),
Map(BTreeMap<&'a str, JsonValue>),
}
Expand description
Serializable JSON-RPC parameters
If your type implements Into<JsonValue>
, call that in favor of serde_json::to:value
to
construct the parameters. Because serde_json::to_value
serializes the type which allocates
whereas Into<JsonValue>
doesn’t in most cases.
Variants§
Array(Vec<JsonValue>)
Positional params (heap allocated).
ArrayRef(&'a [JsonValue])
Positional params (slice).
Map(BTreeMap<&'a str, JsonValue>)
Params by name.