View Source MishkaDeveloperTools.Macros.GuardedStruct.Derive (Mishka developer tools v0.1.7)

Summary

Functions

@spec derive(
  {:error, any(), any()}
  | {:ok, any(), [String.t() | map()]}
  | {:error, any(), :halt}
  | {:error, :nested, list(), any(), [binary()]}
) :: {:ok, map()} | {:error, any()}
Link to this function

derive(arg, extra_error \\ [])

View Source
@spec derive({:ok, any(), [String.t() | map()]}, list()) ::
  {:ok, map()} | {:error, list()}
Link to this function

error_handler(reduced_fields, extra_error \\ [])

View Source
@spec error_handler(map(), [any()]) :: {:error, any()}
Link to this function

pre_derives_check(result, opts, field)

View Source