pub enum Type {
}Expand description
All possible RQL data types
Variants§
Boolean
A boolean: true or false.
Float4
A 4-byte floating point
Float8
An 8-byte floating point
Int1
A 1-byte signed integer
Int2
A 2-byte signed integer
Int4
A 4-byte signed integer
Int8
An 8-byte signed integer
Int16
A 16-byte signed integer
Utf8
A UTF-8 encoded text.
Uint1
A 1-byte unsigned integer
Uint2
A 2-byte unsigned integer
Uint4
A 4-byte unsigned integer
Uint8
A 8-byte unsigned integer
Uint16
A 16-byte unsigned integer
Date
A date value (year, month, day)
DateTime
A date and time value with nanosecond precision in SVTC
Time
A time value (hour, minute, second, nanosecond)
Duration
A duration representing a duration
IdentityId
An identity identifier (UUID v7)
Uuid4
A UUID version 4 (random)
Uuid7
A UUID version 7 (timestamp-based)
Blob
A binary large object (BLOB)
Int
An arbitrary-precision signed integer
Uint
An arbitrary-precision unsigned integer
Decimal
An arbitrary-precision decimal with precision and scale
Option(Box<Type>)
An optional type that can hold None or a value of the inner type
Any
A container that can hold any value type
DictionaryId
A dictionary entry identifier
Implementations§
Source§impl Type
impl Type
pub fn is_number(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_signed_integer(&self) -> bool
pub fn is_unsigned_integer(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_floating_point(&self) -> bool
pub fn is_utf8(&self) -> bool
pub fn is_temporal(&self) -> bool
pub fn is_uuid(&self) -> bool
pub fn is_blob(&self) -> bool
pub fn is_option(&self) -> bool
Sourcepub fn inner_type(&self) -> &Type
pub fn inner_type(&self) -> &Type
Returns the inner type if this is an Option type, otherwise returns self