pub enum UserParamError {
Arity {
expected: usize,
got: usize,
},
Gap {
missing: usize,
max: usize,
},
UnsupportedShape,
TypeMismatch {
slot: &'static str,
got: &'static str,
},
}Expand description
Errors surfaced when binding fails. The wire layer turns these into
QUERY_ERROR / INVALID_PARAMS responses.
Variants§
Arity
Caller supplied fewer or more values than the SQL references.
expected is the highest $N index in the SQL (so a SQL using
$1 and $3 reports expected = 3).
Gap
SQL uses $1 and $3 but not $2 — placeholder indices must
be a contiguous run starting from 1.
UnsupportedShape
The runtime accepts only QueryExpr variants supported by the
shape binder (Table / Join / Graph / Path / Vector / Hybrid).
Other shapes (DDL, KV ops, etc.) cannot carry placeholders in
the tracer-bullet scope.
TypeMismatch
A parameter was supplied in a slot that requires a specific type
(e.g. a vector slot received a string). slot describes the
context, got describes the user-supplied value’s variant.
Trait Implementations§
Source§impl Clone for UserParamError
impl Clone for UserParamError
Source§fn clone(&self) -> UserParamError
fn clone(&self) -> UserParamError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UserParamError
impl Debug for UserParamError
Source§impl Display for UserParamError
impl Display for UserParamError
Source§impl Error for UserParamError
impl Error for UserParamError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for UserParamError
impl PartialEq for UserParamError
Source§fn eq(&self, other: &UserParamError) -> bool
fn eq(&self, other: &UserParamError) -> bool
self and other values to be equal, and is used by ==.impl Eq for UserParamError
impl StructuralPartialEq for UserParamError
Auto Trait Implementations§
impl Freeze for UserParamError
impl RefUnwindSafe for UserParamError
impl Send for UserParamError
impl Sync for UserParamError
impl Unpin for UserParamError
impl UnsafeUnpin for UserParamError
impl UnwindSafe for UserParamError
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
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
key and return true if they are equal.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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request