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

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!(map()) :: t()
@spec denormalize(map()) :: {: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.