AntlPhonenumber.Ecto.PlusE164 (AntlPhonenumber v0.1.9) View Source
An Ecto type for plus_e164 formatted numbers.
It can be used like this:
defmodule Schema do use Ecto.Schema
embedded_schema do
field(:number, PlusE164)
field(:french_number, PlusE164, iso_country_code: "FR")
end end
Link to this section Summary
Functions
Callback implementation for Ecto.ParameterizedType.cast/2
.
Callback implementation for Ecto.ParameterizedType.dump/3
.
Callback implementation for Ecto.ParameterizedType.init/1
.
Callback implementation for Ecto.ParameterizedType.load/3
.
Callback implementation for Ecto.ParameterizedType.type/1
.
Link to this section Types
Specs
t() :: binary()
Link to this section Functions
Specs
Callback implementation for Ecto.ParameterizedType.cast/2
.
Specs
Callback implementation for Ecto.ParameterizedType.dump/3
.
Specs
Callback implementation for Ecto.ParameterizedType.init/1
.
Specs
Callback implementation for Ecto.ParameterizedType.load/3
.
Specs
type(any()) :: :string
Callback implementation for Ecto.ParameterizedType.type/1
.