Isn.UPC
Definition for the upc module.
How to use this in an Ecto.Model
defmodule MyApp.Book do
use MyApp.Web, :model
schema "books" do
field :upc, Isn.UPC
# other fields
end
end
Summary↑
blank?() | |
cast(isn) | Callback implementation of |
dump(isn) | Callback implementation of |
load(isn) | Callback implementation of |
type() | Callback implementation of |
Functions
Callback implementation of Ecto.Type.cast/1
.
Callback implementation of Ecto.Type.dump/1
.
Callback implementation of Ecto.Type.load/1
.
Callback implementation of Ecto.Type.type/0
.