#[non_exhaustive]pub enum AstTransformError {
NotYetImplemented(String),
IllegalState(String),
Literal {
literal: String,
error: String,
},
InvalidNumberOfArguments(String),
UnsupportedFunction(String),
UnsupportedAggregationFunction(String),
Unknown(String),
HavingWithoutGroupBy,
}
Expand description
Represents an AST transform Error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotYetImplemented(String)
Indicates that AST lowering has not yet been implemented for this feature.
IllegalState(String)
Indicates that there is an internal error that was not due to user input or API violation.
Literal
Indicates that there was an error interpreting a literal value.
InvalidNumberOfArguments(String)
Invalid number of arguments to the function call.
UnsupportedFunction(String)
Indicates that this function is not supported.
UnsupportedAggregationFunction(String)
Indicates that this aggregation function is not supported.
Unknown(String)
Any other lowering error.
HavingWithoutGroupBy
Indicates that a HAVING
clause was provided without a GROUP BY
Trait Implementations§
source§impl Clone for AstTransformError
impl Clone for AstTransformError
source§fn clone(&self) -> AstTransformError
fn clone(&self) -> AstTransformError
Returns a copy of the value. Read more
1.0.0 · 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 AstTransformError
impl Debug for AstTransformError
source§impl Display for AstTransformError
impl Display for AstTransformError
source§impl Error for AstTransformError
impl Error for AstTransformError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CallLookupError> for AstTransformError
impl From<CallLookupError> for AstTransformError
source§fn from(err: CallLookupError) -> Self
fn from(err: CallLookupError) -> Self
Converts to this type from the input type.
source§impl Hash for AstTransformError
impl Hash for AstTransformError
source§impl PartialEq<AstTransformError> for AstTransformError
impl PartialEq<AstTransformError> for AstTransformError
source§fn eq(&self, other: &AstTransformError) -> bool
fn eq(&self, other: &AstTransformError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AstTransformError
impl StructuralEq for AstTransformError
impl StructuralPartialEq for AstTransformError
Auto Trait Implementations§
impl RefUnwindSafe for AstTransformError
impl Send for AstTransformError
impl Sync for AstTransformError
impl Unpin for AstTransformError
impl UnwindSafe for AstTransformError
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.