pub enum FieldKind {
Text,
Native,
Composite,
}Expand description
The semantic kind of a projection field, determining which JSONB extraction operator to use in generated SQL.
Text→->>(extracts as text — for String and ID scalars)Native→->(preserves native JSON type — Int, Float, Boolean, DateTime, etc.)Composite→->(preserves full JSONB structure)
Variants§
Text
Text scalar — extracted with ->> (String, ID).
Native
Native JSON scalar — extracted with -> to preserve type (Int, Float, Boolean, DateTime,
etc.).
Composite
Object or list — extracted with -> to preserve JSONB structure.
Trait Implementations§
impl Copy for FieldKind
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.