pub enum Type {
Show 28 variants
Boolean,
Float4,
Float8,
Int1,
Int2,
Int4,
Int8,
Int16,
Utf8,
Uint1,
Uint2,
Uint4,
Uint8,
Uint16,
Date,
DateTime,
Time,
Duration,
RowNumber,
IdentityId,
Uuid4,
Uuid7,
Blob,
Int,
Uint,
Decimal,
Undefined,
Any,
}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
RowNumber
A encoded identifier (8-byte unsigned integer)
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
Undefined
Value is not defined (think null in common programming languages)
Any
A container that can hold any value type
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
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)