KiwiCodec.RustlerGenerator.Name (kiwi_codec v0.2.2)

Copy Markdown View Source

Naming helpers for Rustler decoder code generated from Kiwi schemas.

Summary

Functions

decoder_function(name)

@spec decoder_function(String.t()) :: atom()

field_name(name)

@spec field_name(String.t()) :: String.t()

message_fields_function(name)

@spec message_fields_function(String.t()) :: atom()

module_atom_static(name)

@spec module_atom_static(String.t()) :: atom()

module_name(module_prefix, name)

@spec module_name(String.t(), String.t()) :: String.t()

rust_identifier(name)

@spec rust_identifier(String.t()) :: String.t()

static_alias(name)

@spec static_alias(atom()) :: Macro.t()

struct_keys_static(name)

@spec struct_keys_static(String.t()) :: atom()