KiwiCodec.RustlerGenerator.Sparse (kiwi_codec v0.7.0)

Copy Markdown View Source

Generates sparse decoders: maps of the fields present, with __kiwi_module__ naming the generated Elixir module; see KiwiCodec.RustlerGenerator.Sparse.Helpers.

With skip decoders generated as well, a message's sparse and skip decoders come from one row per field; see KiwiCodec.RustlerGenerator.Sparse.SkipMessages.

Summary

Functions

The sparse decoders of definitions, sharing message rows with skip ones on skip?.

Functions

fragments(definitions, module_prefix, definition_map, skip?)

@spec fragments([KiwiCodec.Schema.definition()], String.t(), map(), boolean()) :: [
  RustQ.Rust.Fragment.t()
]

The sparse decoders of definitions, sharing message rows with skip ones on skip?.