pub enum Value {
Show 28 variants
Undefined,
Boolean(bool),
Float4(OrderedF32),
Float8(OrderedF64),
Int1(i8),
Int2(i16),
Int4(i32),
Int8(i64),
Int16(i128),
Utf8(String),
Uint1(u8),
Uint2(u16),
Uint4(u32),
Uint8(u64),
Uint16(u128),
Date(Date),
DateTime(DateTime),
Time(Time),
Duration(Duration),
RowNumber(RowNumber),
IdentityId(IdentityId),
Uuid4(Uuid4),
Uuid7(Uuid7),
Blob(Blob),
Int(Int),
Uint(Uint),
Decimal(Decimal),
Any(Box<Value>),
}Expand description
A RQL value, represented as a native Rust type.
Variants§
Undefined
Value is not defined (think null in common programming languages)
Boolean(bool)
A boolean: true or false.
Float4(OrderedF32)
A 4-byte floating point
Float8(OrderedF64)
An 8-byte floating point
Int1(i8)
A 1-byte signed integer
Int2(i16)
A 2-byte signed integer
Int4(i32)
A 4-byte signed integer
Int8(i64)
An 8-byte signed integer
Int16(i128)
A 16-byte signed integer
Utf8(String)
A UTF-8 encoded text. Maximum 255 bytes
Uint1(u8)
A 1-byte unsigned integer
Uint2(u16)
A 2-byte unsigned integer
Uint4(u32)
A 4-byte unsigned integer
Uint8(u64)
A 8-byte unsigned integer
Uint16(u128)
A 16-byte unsigned integer
Date(Date)
A date value (year, month, day)
DateTime(DateTime)
A date and time value with nanosecond precision in SVTC
Time(Time)
A time value (hour, minute, second, nanosecond)
Duration(Duration)
A duration representing a duration
RowNumber(RowNumber)
A encoded number (8-byte unsigned integer)
IdentityId(IdentityId)
An identity identifier (UUID v7)
Uuid4(Uuid4)
A UUID version 4 (random)
Uuid7(Uuid7)
A UUID version 7 (timestamp-based)
Blob(Blob)
A binary large object (BLOB)
Int(Int)
An arbitrary-precision signed integer
Uint(Uint)
An arbitrary-precision unsigned integer
Decimal(Decimal)
An arbitrary-precision decimal
Any(Box<Value>)
A container that can hold any value type