pub enum QueryErrorKind {
Validate,
Intent,
Plan,
UnorderedPagination,
InvalidContinuationCursor,
NotFound,
NotUnique,
}Expand description
QueryErrorKind
Public query error class.
Variants§
Validate
Validation failed.
Intent
Intent validation failed.
Plan
Planning failed.
UnorderedPagination
Pagination lacked ordering.
InvalidContinuationCursor
Continuation cursor was invalid.
NotFound
No rows matched.
NotUnique
More than one row matched.
Implementations§
Source§impl QueryErrorKind
impl QueryErrorKind
Sourcepub const fn diagnostic_code(self) -> DiagnosticCode
pub const fn diagnostic_code(self) -> DiagnosticCode
Return the compact diagnostic code for this query category.
Trait Implementations§
Source§impl Clone for QueryErrorKind
impl Clone for QueryErrorKind
Source§fn clone(&self) -> QueryErrorKind
fn clone(&self) -> QueryErrorKind
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 QueryErrorKind
Source§impl Debug for QueryErrorKind
impl Debug for QueryErrorKind
impl Eq for QueryErrorKind
Source§impl PartialEq for QueryErrorKind
impl PartialEq for QueryErrorKind
Source§fn eq(&self, other: &QueryErrorKind) -> bool
fn eq(&self, other: &QueryErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryErrorKind
Auto Trait Implementations§
impl Freeze for QueryErrorKind
impl RefUnwindSafe for QueryErrorKind
impl Send for QueryErrorKind
impl Sync for QueryErrorKind
impl Unpin for QueryErrorKind
impl UnsafeUnpin for QueryErrorKind
impl UnwindSafe for QueryErrorKind
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