pub enum CastTarget {
Show 17 variants
Int,
BigInt,
Float,
Text,
Bool,
Vector,
Date,
Timestamp,
Interval,
Timestamptz,
Json,
Jsonb,
RegType,
RegClass,
TextArray,
IntArray,
BigIntArray,
}Variants§
Int
BigInt
Float
Text
Bool
Vector
Date
Timestamp
Interval
v7.9.25 — ::INTERVAL and ::TIMESTAMPTZ. mailrs follow-up
H3a. Engine reuses the existing runtime-interval / timestamp
paths (parse the text input, return the matching Value).
Timestamptz
Json
v7.9.25 — ::JSON and ::JSONB. SPG already has both
types (v7.9.0); the cast just routes Text→Json with the
requested OID for the wire layer.
Jsonb
RegType
v7.9.26 — ::regtype / ::regclass. Parsed for PG dump
compatibility; engine surfaces as Unsupported with a
hint to use SHOW TABLES or spg_table_ddl. mailrs F3b.
RegClass
TextArray
v7.10.11 — ::TEXT[]. Engine decodes the LHS Text into
the PG external array form {a,b,NULL}.
IntArray
v7.11.13 — ::INT[] / ::BIGINT[]. Decodes PG external
{1,2,3} or widens a TextArray whose elements are
integer-shaped.
BigIntArray
Trait Implementations§
Source§impl Clone for CastTarget
impl Clone for CastTarget
Source§fn clone(&self) -> CastTarget
fn clone(&self) -> CastTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CastTarget
Source§impl Debug for CastTarget
impl Debug for CastTarget
Source§impl Display for CastTarget
impl Display for CastTarget
impl Eq for CastTarget
Source§impl PartialEq for CastTarget
impl PartialEq for CastTarget
Source§fn eq(&self, other: &CastTarget) -> bool
fn eq(&self, other: &CastTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CastTarget
Auto Trait Implementations§
impl Freeze for CastTarget
impl RefUnwindSafe for CastTarget
impl Send for CastTarget
impl Sync for CastTarget
impl Unpin for CastTarget
impl UnsafeUnpin for CastTarget
impl UnwindSafe for CastTarget
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
Mutably borrows from an owned value. Read more