KiwiCodec.RustlerGenerator.Skip (kiwi_codec v0.3.0)

Copy Markdown View Source

Generates generic Kiwi schema skip decoders for Rustler native backends.

Skip decoders consume encoded values without allocating decoded Elixir terms. They are schema-generic and intended for callers that project only selected fields from a Kiwi payload.

Summary

Functions

field_expr(field, definition_map)

@spec field_expr(map(), map()) :: String.t()

fragments(definitions, definition_map, opts \\ [])

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

message_arm(field, definition_map)

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