PhoenixGenApi.JasonImplHelper (PhoenixGenApi v0.0.13)

View Source

Summary

Functions

Macro to generate simple implementation of protocol. Support for easy to use with Jason.Encoder.

Functions

__using__(opts)

(macro)

Macro to generate simple implementation of protocol. Support for easy to use with Jason.Encoder.

Utility macro to generate implementation for Jason.Encoder.

The target struct must have encode! function in module.

Usage:

use PhoenixGenApi.NestruImplHelper, impl: [AModule1, AModule2, ...]

Using macro without option in use keyword. Target module must have encode! function Generate implementation for Jason.Encoder like this:

gen_impl AModule

gen_impl(mod)

(macro)