AshToonEx.Protocol protocol (ash_toon_ex v0.3.0)

Copy Markdown View Source

A protocol that provides a way to get fields from a record using AshToonEx's logic.

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

get_fields(struct)

@spec get_fields(t()) :: [{t(), t()}]