Noizu.Entity.JsonBehaviour behaviour (NoizuLabs Entities v0.1.3)

Link to this section Summary

Link to this section Callbacks

Link to this callback

decode(json, context, opts)

@callback decode(json :: any(), context :: any(), opts :: any()) ::
  {:ok, any()} | {:error, any()}
Link to this callback

decode!(json, context, opts)

@callback decode!(json :: any(), context :: any(), opts :: any()) :: any()
Link to this callback

encode(entity, json_settings, context, opts)

@callback encode(entity :: any(), json_settings :: any(), context :: any(), opts :: any()) ::
  {:ok, any()} | {:error, any()}
Link to this callback

encode!(entity, json_settings, context, opts)

@callback encode!(
  entity :: any(),
  json_settings :: any(),
  context :: any(),
  opts :: any()
) :: any()

Link to this section Functions

Link to this function

decode(json, context, opts)

Link to this function

decode!(json, context, opts)

Link to this function

encode(entity, context, opts)

Link to this function

encode!(entity, context, opts)