Enum gluesql::core::error::EvaluateError
source · pub enum EvaluateError {
Show 46 variants
FormatParseError(ParseError),
LiteralAddOnNonNumeric,
FunctionRequiresStringValue(String),
FunctionRequiresIntegerValue(String),
FunctionRequiresFloatOrIntegerValue(String),
FunctionRequiresUSizeValue(String),
FunctionRequiresFloatValue(String),
ExtractFormatNotMatched(String),
FunctionRequiresMapValue(String),
FunctionRequiresPointValue(String),
FunctionRequiresDateOrDateTimeValue(String),
FunctionRequiresStrOrListOrMapValue(String),
ValueNotFound(String),
BooleanTypeRequired(String),
MapOrListTypeRequired,
MapTypeRequired,
ListTypeRequired,
InvalidSortType,
InvalidSortOrder,
MapOrStringValueRequired(String),
TextLiteralRequired(String),
UnsupportedStatelessExpr(Expr),
ContextRequiredForIdentEvaluation(Expr),
UnreachableEmptyAggregateValue(Aggregate),
IncompatibleBitOperation(String, String),
DivisorShouldNotBeZero,
NegativeSubstrLenNotAllowed,
MoreThanOneRowReturned,
MoreThanOneColumnReturned,
SchemalessProjectionForInSubQuery,
SchemalessProjectionForSubQuery,
UnsupportedExprForFormatFunction(String),
AsciiFunctionRequiresSingleCharacterValue,
NonAsciiCharacterNotAllowed,
ChrFunctionRequiresIntegerValueInRange0To255,
UnsupportedBinaryOperation {
left: String,
op: BinaryOperator,
right: String,
},
UnsupportedUnaryPlus(String),
UnsupportedUnaryMinus(String),
UnsupportedUnaryFactorial(String),
IncompatibleUnaryBitwiseNotOperation(String),
UnsupportedCustomFunction,
FunctionRequiresMoreArguments {
function_name: String,
required_minimum: usize,
found: usize,
},
FunctionArgsLengthNotWithinRange {
name: String,
expected_minimum: usize,
expected_maximum: usize,
found: usize,
},
UnsupportedFunction(String),
NonComparableArgumentError(String),
FunctionRequiresAtLeastOneArgument(String),
}
Variants§
FormatParseError(ParseError)
LiteralAddOnNonNumeric
FunctionRequiresStringValue(String)
FunctionRequiresIntegerValue(String)
FunctionRequiresFloatOrIntegerValue(String)
FunctionRequiresUSizeValue(String)
FunctionRequiresFloatValue(String)
ExtractFormatNotMatched(String)
FunctionRequiresMapValue(String)
FunctionRequiresPointValue(String)
FunctionRequiresDateOrDateTimeValue(String)
FunctionRequiresStrOrListOrMapValue(String)
ValueNotFound(String)
BooleanTypeRequired(String)
MapOrListTypeRequired
MapTypeRequired
ListTypeRequired
InvalidSortType
InvalidSortOrder
MapOrStringValueRequired(String)
TextLiteralRequired(String)
UnsupportedStatelessExpr(Expr)
ContextRequiredForIdentEvaluation(Expr)
UnreachableEmptyAggregateValue(Aggregate)
IncompatibleBitOperation(String, String)
DivisorShouldNotBeZero
NegativeSubstrLenNotAllowed
MoreThanOneRowReturned
MoreThanOneColumnReturned
SchemalessProjectionForInSubQuery
SchemalessProjectionForSubQuery
UnsupportedExprForFormatFunction(String)
AsciiFunctionRequiresSingleCharacterValue
NonAsciiCharacterNotAllowed
ChrFunctionRequiresIntegerValueInRange0To255
UnsupportedBinaryOperation
UnsupportedUnaryPlus(String)
UnsupportedUnaryMinus(String)
UnsupportedUnaryFactorial(String)
IncompatibleUnaryBitwiseNotOperation(String)
UnsupportedCustomFunction
FunctionRequiresMoreArguments
FunctionArgsLengthNotWithinRange
UnsupportedFunction(String)
NonComparableArgumentError(String)
FunctionRequiresAtLeastOneArgument(String)
Trait Implementations§
source§impl Debug for EvaluateError
impl Debug for EvaluateError
source§impl Display for EvaluateError
impl Display for EvaluateError
source§impl Error for EvaluateError
impl Error for EvaluateError
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<EvaluateError> for Error
impl From<EvaluateError> for Error
source§fn from(source: EvaluateError) -> Error
fn from(source: EvaluateError) -> Error
Converts to this type from the input type.
source§impl From<ParseError> for EvaluateError
impl From<ParseError> for EvaluateError
source§fn from(source: ParseError) -> EvaluateError
fn from(source: ParseError) -> EvaluateError
Converts to this type from the input type.
source§impl PartialEq for EvaluateError
impl PartialEq for EvaluateError
source§fn eq(&self, other: &EvaluateError) -> bool
fn eq(&self, other: &EvaluateError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EvaluateError
impl Serialize for EvaluateError
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for EvaluateError
impl StructuralEq for EvaluateError
impl StructuralPartialEq for EvaluateError
Auto Trait Implementations§
impl RefUnwindSafe for EvaluateError
impl Send for EvaluateError
impl Sync for EvaluateError
impl Unpin for EvaluateError
impl UnwindSafe for EvaluateError
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.