View Source Estructura.Coercer behaviour (estructura v1.2.12)

Behaviour for coercion delegates. Instead of implementing the coercion handlers in Estructura.Nested inplace, one might do

coerce do
  defdelegate foo.bar.created_at(value), to: :date
end

Summary

Callbacks

@callback coerce(value) :: {:ok, value} | {:error, any()} when value: term()