pub enum Refusal {
Show 17 variants
Sort,
Fold,
Unique,
Take,
Pattern,
Resolution,
Walk,
State,
Join,
Reducer,
Type,
Union,
Operator,
Name,
Condition,
Nothing,
Nodes,
}Expand description
Why the exporter leaves a part of a Quarb query to the engine:
the first word of the diagnostic code a planner’s refusal is told
under (Sort is SORT_NOT_PUSHED; ruling 2026-11-17, one word
per reason where NOT_PUSHED was the one kind). The word names
what the user wrote; the inventory (langspec/diagnostics.tsv)
files each under its remedy.
Variants§
Sort
A sort (sort_by, top, reverse): a database orders text
by its own collation.
Fold
A fold, a command over its groups, a HAVING.
Unique
unique: DISTINCT returns rows in no stated order.
Take
A selection by position.
Pattern
A regular expression, a substring test, a LIKE.
Resolution
A condition that follows a reference or navigates.
Walk
Navigation beyond a table’s rows.
State
A read of the query’s own state: a register, the topic, a capture, a mark, a pushed value.
Join
A correlation in a form with no JOIN.
Reducer
A reducer over row nodes, or one SQL has no aggregate for.
Type
A comparison that would follow the column’s declared type where the engine follows each value.
Union
A union of branches.
Operator
An operator, a command or a projection with no SQL form.
Name
A name or a literal with no spelling every dialect reads, or an empty query.
Condition
A leading condition a partial plan could not send ahead: what follows would see the difference.
Nothing
A partial plan with no leading condition to send ahead: nothing was refused, there was nothing to push, and no diagnostic tells of it.
Nodes
A whole plan for a query that ends on row nodes: their locators are the scan’s to write. Nothing the reader wrote is refused (the conditions go ahead through the partial plan), and no diagnostic tells of it.
Implementations§
Source§impl Refusal
impl Refusal
Sourcepub fn code(self) -> Option<&'static str>
pub fn code(self) -> Option<&'static str>
The diagnostic code; None for Refusal::Nothing and
Refusal::Nodes.
Trait Implementations§
impl Copy for Refusal
impl Eq for Refusal
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Forget for Refusal
impl Freeze for Refusal
impl Move for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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§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.