Fields. PhoneNumber
(fields v2.12.0)
Copy Markdown
An Ecto Type for plaintext phone numbers.
Useful for publicly available numbers such as customer support.
See Fields.PhoneNumberEncrypted for storing numbers that are Personally Identifiable Information.
Example
schema "retailers" do
field(:phone_number, Fields.PhoneNumber)
end
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.
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.