pub enum Value {
Show 27 variants
Null,
Bool(bool),
Int2(i16),
Int4(i32),
Int8(i64),
Float4(f32),
Float8(f64),
Numeric(Numeric),
Oid(u32),
Char(u8),
Text(String),
Bytea(Vec<u8>),
Uuid([u8; 16]),
Date(i32),
Time(i64),
TimeTz(i64, i32),
Timestamp(i64),
TimestampTz(i64),
Interval(Interval),
Inet(Inet),
Array(Box<Array<Value>>),
Record(Box<Record>),
Range(Box<Range>),
Multirange(Vec<Range>),
TsVector(Vec<Lexeme>),
TsQuery(Vec<QueryItem>),
JsonPath(Box<JsonPath>),
}Expand description
One value of the engine.
Variants§
Null
SQL NULL.
Bool(bool)
Int2(i16)
Int4(i32)
Int8(i64)
Float4(f32)
Float8(f64)
Numeric(Numeric)
Oid(u32)
oid, xid, cid and the OID alias types.
Char(u8)
The type "char". The byte 0 is the empty string.
Text(String)
The string types, unknown, cstring, json and the other types that the engine keeps as their text form.
Bytea(Vec<u8>)
Uuid([u8; 16])
Date(i32)
date, the days since 1 January 2000.
Time(i64)
time, the microseconds since midnight.
TimeTz(i64, i32)
timetz, the microseconds since midnight and the zone offset in seconds west of UTC.
Timestamp(i64)
timestamp, the microseconds since 1 January 2000.
TimestampTz(i64)
timestamptz, the microseconds since 1 January 2000 UTC.
Interval(Interval)
Inet(Inet)
inet and cidr.
Array(Box<Array<Value>>)
An array, int2vector or oidvector. A null element is None, and no element is Some(Value::Null).
Record(Box<Record>)
A row of a composite type or of record.
Range(Box<Range>)
A value of a range type.
Multirange(Vec<Range>)
A value of a multirange type: the ranges in order, with no empty range and no two ranges that overlap or touch.
TsVector(Vec<Lexeme>)
A value of tsvector: the lexemes in order.
TsQuery(Vec<QueryItem>)
A value of tsquery: the operands and operators in prefix order, or no items for a query with no lexemes.
JsonPath(Box<JsonPath>)
A value of jsonpath.