pub struct ComputedExpr(/* private fields */);Expand description
A SQL expression a projection may emit verbatim, in place of reading a key out of the JSONB column (#959).
The inner string is private and there is no public constructor: the only
way to obtain one is
vector_distance_expr, which builds
it from a validated identifier, an operator drawn from a fixed set and a
literal whose character set it re-checks. A projection is SQL the caller does
not get to write, and this type is what enforces that across the crate
boundary — fraiseql-core can carry one into a ProjectionField but cannot
invent one.
Implementations§
Trait Implementations§
Source§impl Clone for ComputedExpr
impl Clone for ComputedExpr
Source§fn clone(&self) -> ComputedExpr
fn clone(&self) -> ComputedExpr
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 moreSource§impl Debug for ComputedExpr
impl Debug for ComputedExpr
impl Eq for ComputedExpr
Source§impl PartialEq for ComputedExpr
impl PartialEq for ComputedExpr
impl StructuralPartialEq for ComputedExpr
Auto Trait Implementations§
impl Freeze for ComputedExpr
impl RefUnwindSafe for ComputedExpr
impl Send for ComputedExpr
impl Sync for ComputedExpr
impl Unpin for ComputedExpr
impl UnsafeUnpin for ComputedExpr
impl UnwindSafe for ComputedExpr
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.