shortcode v0.7.0 Shortcode.Ecto.ID View Source

An Ecto type for ids shortcode with prefix.

Link to this section Summary

Types

Stored type data

t()

A binary string.

Link to this section Types

Specs

raw() :: non_neg_integer()

Stored type data

Specs

t() :: binary()

A binary string.

Link to this section Functions

Specs

cast(t() | raw(), map()) :: {:ok, t() | nil} | :error

Specs

dump(t() | raw() | nil, function(), map()) :: {:ok, raw() | nil} | :error
Link to this function

equal?(term1, term2, params)

View Source

Specs

init(keyword()) :: map()

Specs

load(raw() | nil, function(), map()) :: {:ok, t() | nil} | :error

Specs

type(any()) :: :id