View Source Hugs.Sample.Sub (hugs v0.2.3)

Link to this section Summary

Functions

Create a new Hugs.Sample.Sub struct from a map or a struct.

Create a new Hugs.Sample.Sub struct from a list of properties.

Link to this section Types

@type kv() :: {:int, integer()}
@type kvs() :: [kv()]
@type t() :: %{int: integer()}

Link to this section Functions

@spec denormalize!(term()) :: t()
Link to this function

denormalize!(data, opts)

View Source
@spec denormalize!(term(), Hugs.Norde.denormalize_opts()) :: t()
@spec denormalize(term()) :: {:ok, t()} | {:error, term()}
@spec denormalize(term(), Hugs.Norde.denormalize_opts()) ::
  {:ok, t()} | {:error, term()}
@spec new(kvs() | t()) :: t()

Create a new Hugs.Sample.Sub struct from a map or a struct.

@spec of(kvs()) :: t()

Create a new Hugs.Sample.Sub struct from a list of properties.