#[non_exhaustive]pub enum ColumnTypeKind {
Builtin,
Custom,
Domain,
Struct,
Union,
}Expand description
Classification of a result column’s declared type.
Returned as part of ColumnTypeInfo. #[non_exhaustive] so that new
kinds (e.g. for future enum or table-row types) can be added without a
breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Builtin
A SQLite-style primitive type: INTEGER, TEXT, REAL, BLOB,
NUMERIC, ANY. The declared name is itself the primitive.
Custom
A user- or built-in custom type defined with
CREATE TYPE name BASE primitive ENCODE ... DECODE .... Has an
underlying primitive (see base_type) and an encode/decode pipeline.
Built-in types like uuid, boolean, numeric register through
this path too.
Domain
A domain defined with CREATE DOMAIN name AS base [CHECK ...].
Shares an underlying primitive with its base type but adds CHECK
constraints; values are otherwise identical to the base.
Struct
A composite type defined with CREATE TYPE name AS STRUCT(...).
Values are stored as BLOBs containing the packed record; the
declared name carries the field schema.
Union
A tagged union defined with CREATE TYPE name AS UNION(...).
Values are stored as BLOBs containing a tag and a payload; the
declared name carries the variant schema.
Trait Implementations§
Source§impl Clone for ColumnTypeKind
impl Clone for ColumnTypeKind
Source§fn clone(&self) -> ColumnTypeKind
fn clone(&self) -> ColumnTypeKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ColumnTypeKind
Source§impl Debug for ColumnTypeKind
impl Debug for ColumnTypeKind
impl Eq for ColumnTypeKind
Source§impl PartialEq for ColumnTypeKind
impl PartialEq for ColumnTypeKind
impl StructuralPartialEq for ColumnTypeKind
Auto Trait Implementations§
impl Freeze for ColumnTypeKind
impl RefUnwindSafe for ColumnTypeKind
impl Send for ColumnTypeKind
impl Sync for ColumnTypeKind
impl Unpin for ColumnTypeKind
impl UnsafeUnpin for ColumnTypeKind
impl UnwindSafe for ColumnTypeKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more