View Source EctoIPRange.IP6 (Ecto IP Range v0.2.0)
Struct for PostgreSQL :ip6 fields.
Usage
When used during a changeset cast the following values are accepted:
:inet.ip6_address(): an IP6 tuple, e.g.{8193, 3512, 34211, 0, 0, 35374, 880, 29492}binary: binary representation, e.g."2001:0db8:85a3:0000:0000:8a2e:0370:7334"EctoIPRange.IP6.t(): a pre-casted struct
IP4 addresses (binary and tuple) will be converted to IP6 format when casted.
Fields
ip
Link to this section Summary
Functions
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.
Link to this section Types
Specs
t() :: %EctoIPRange.IP6{ip: :inet.ip6_address()}
Link to this section Functions
Callback implementation for Ecto.Type.embed_as/1.
Callback implementation for Ecto.Type.equal?/2.