Parameter tagging lets you have more explicit control over which raw parameters can match which real
parameters. This way you can have some of the parameters annotated in order to treat them differently, e.g.
they may be verbatim, encoded in a different way or collected to a different raw container (e.g.
Map[String,Raw] vs List[Raw] - see multi for more details).
NOTE: The example above assumes there is a Json type defined with appropriate encodings -
see encoded for more details on parameter and method result encoding.
The example above configures parameter tag type for the entire trait, but you can also do it for
each raw method, e.g.
Parameter tagging lets you have more explicit control over which raw parameters can match which real parameters. This way you can have some of the parameters annotated in order to treat them differently, e.g. they may be verbatim, encoded in a different way or collected to a different raw container (e.g.
Map[String,Raw]
vsList[Raw]
- see multi for more details).Example:
NOTE: The example above assumes there is a
Json
type defined with appropriate encodings - see encoded for more details on parameter and method result encoding.The example above configures parameter tag type for the entire trait, but you can also do it for each raw method, e.g.
base type for tags that can be used on real RPC parameters