TinyColor.Ecto.Color (tiny_color_ecto v0.1.0)
Custom ecto type for representing color spaces supported by tiny color.
Serializes the colors as css color strings with no particular guarantee of the color space used.
Link to this section Summary
Functions
Callback implementation for Ecto.Type.cast/1
.
Callback implementation for Ecto.Type.dump/1
.
Callback implementation for Ecto.Type.embed_as/1
.
Callback implementation for Ecto.Type.equal?/2
.
Callback implementation for Ecto.Type.load/1
.
Callback implementation for Ecto.Type.type/0
.
Link to this section Functions
Link to this function
cast(string)
Specs
cast(String.t() | TinyColor.color()) :: {:ok, TinyColor.color()} | :error
Callback implementation for Ecto.Type.cast/1
.
Link to this function
dump(color)
Specs
dump(TinyColor.color()) :: {:ok, String.t()}
Callback implementation for Ecto.Type.dump/1
.
Link to this function
embed_as(_)
Callback implementation for Ecto.Type.embed_as/1
.
Link to this function
equal?(term1, term2)
Callback implementation for Ecto.Type.equal?/2
.
Link to this function
load(string)
Specs
load(String.t()) :: {:ok, TinyColor.color()}
Callback implementation for Ecto.Type.load/1
.
Link to this function
type()
Callback implementation for Ecto.Type.type/0
.