View Source ElixirAvro.Template.Renderer (elixir_avro v0.1.0)

Module responsible for processing field templates.

Summary

Functions

Renders the @expected_keys module attribute for the given fields.

Renders the @moduledoc documentation for the given fields.

Renders the typestruct fields with their specs.

Renders the @values for enum types.

Functions

Link to this function

args_for_from_avro(template)

View Source
@spec args_for_from_avro(ElixirAvro.Template.t()) :: String.t()
@spec expected_keys(ElixirAvro.Template.t()) :: String.t()

Renders the @expected_keys module attribute for the given fields.

Link to this function

fields_for_from_avro(template)

View Source
@spec fields_for_from_avro(ElixirAvro.Template.t()) :: String.t()
Link to this function

fields_for_to_avro(template)

View Source
@spec fields_for_to_avro(ElixirAvro.Template.t()) :: String.t()
@spec module_doc(ElixirAvro.Template.t()) :: String.t()

Renders the @moduledoc documentation for the given fields.

Link to this function

typedstruct_fields(template)

View Source
@spec typedstruct_fields(ElixirAvro.Template.t()) :: String.t()

Renders the typestruct fields with their specs.

@spec values(ElixirAvro.Template.t()) :: String.t()

Renders the @values for enum types.