KiwiCodec.RustlerGenerator.Skip (kiwi_codec v0.7.0)

Copy Markdown View Source

Generates skip decoders, which read past a value without building a term; see KiwiCodec.RustlerGenerator.Skip.Helpers.

With sparse decoders generated as well, messages' skip decoders come with their sparse ones; see KiwiCodec.RustlerGenerator.Sparse.SkipMessages.

Summary

Functions

The skip decoders of definitions, leaving messages' to the sparse ones on sparse?.

A match arm skipping field's value, by its id.

Functions

fragments(definitions, definition_map, sparse?)

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

The skip decoders of definitions, leaving messages' to the sparse ones on sparse?.

message_arm(field, definition_map)

@spec message_arm(map(), map()) :: RustQ.Rust.AST.Arm.t()

A match arm skipping field's value, by its id.