Field¶
A single column value within a Row. Contains the column name and the
value decoded via the CodecRegistry into a FieldData type. Built-in
types include Bool, I16, I32, I64, F32, F64, String, Bytea,
PgArray, PgComposite, PgDate, PgTime, PgTimestamp, PgInterval,
and None
(for NULL). Custom codecs may produce additional types implementing
FieldData.
Implements¶
Constructors¶
create¶
Parameters¶
Returns¶
- Field val^
Public fields¶
let name: String val¶
let value: FieldData val¶
Public Functions¶
eq¶
Two fields are equal when they have the same name and the same value.
Values must be the same type and compare equal using the type's own
equality. Custom types that implement FieldDataEquatable participate
in equality; custom types without it are never equal.
Parameters¶
- that: Field val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Field val
Returns¶
- Bool val