Fields.Postcode (fields v2.11.0)

An Ecto Type for plaintext postcodes. Use for publicly available postcodes. For personal data, use Fields.PostcodeEncrypted instead.

Example

schema "retailers" do
  field(:postcode, Fields.Postcode)
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.

Link to this function

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.

Callback implementation for Ecto.Type.load/1.

Callback implementation for Ecto.Type.type/0.