Enum gluesql_core::data::value::ValueError
source · [−]pub enum ValueError {
Show 46 variants
IncompatibleLiteralForDataType {
data_type: DataType,
literal: String,
},
IncompatibleDataType {
data_type: DataType,
value: Value,
},
NullValueOnNotNullField,
FailedToParseNumber,
FloatToDecimalConversionFailure(f64),
FailedToParseDate(String),
FailedToParseTimestamp(String),
FailedToParseTime(String),
FailedToParseUUID(String),
FailedToParseDecimal(String),
FailedToParseHexString(String),
NonNumericMathOperation {
lhs: Value,
rhs: Value,
operator: NumericBinaryOperator,
},
DivisorShouldNotBeZero,
UnaryPlusOnNonNumeric,
UnaryMinusOnNonNumeric,
FactorialOnNonNumeric,
FactorialOnNonInteger,
FactorialOnNegativeNumeric,
FactorialOverflow,
UnreachableNumberParsing,
ImpossibleCast,
UnimplementedCast,
LiteralCastFromTextToIntegerFailed(String),
LiteralCastFromTextToFloatFailed(String),
LiteralCastFromTextToDecimalFailed(String),
LiteralCastToBooleanFailed(String),
LiteralCastToDateFailed(String),
LiteralCastToDataTypeFailed(DataType, String),
LiteralCastToInt8Failed(String),
LiteralCastToTimeFailed(String),
LiteralCastToTimestampFailed(String),
UnreachableLiteralCastFromNumberToInteger(String),
UnreachableLiteralCastFromNumberToFloat(String),
UnimplementedLiteralCast {
data_type: DataType,
literal: String,
},
UnreachableIntegerOverflow(String),
LikeOnNonString(Value, Value),
ExtractFormatNotMatched {
value: Value,
field: DateTimeField,
},
ILikeOnNonString(Value, Value),
BigEndianExportNotSupported(String),
InvalidJsonString,
JsonObjectTypeRequired,
JsonArrayTypeRequired,
UnreachableJsonNumberParseFailure(String),
SelectorRequiresMapOrListTypes,
BinaryOperationOverflow {
lhs: Value,
rhs: Value,
operator: NumericBinaryOperator,
},
SqrtOnNonNumeric(Value),
}Variants
IncompatibleLiteralForDataType
IncompatibleDataType
NullValueOnNotNullField
FailedToParseNumber
FloatToDecimalConversionFailure(f64)
FailedToParseDate(String)
FailedToParseTimestamp(String)
FailedToParseTime(String)
FailedToParseUUID(String)
FailedToParseDecimal(String)
FailedToParseHexString(String)
NonNumericMathOperation
DivisorShouldNotBeZero
UnaryPlusOnNonNumeric
UnaryMinusOnNonNumeric
FactorialOnNonNumeric
FactorialOnNonInteger
FactorialOnNegativeNumeric
FactorialOverflow
UnreachableNumberParsing
ImpossibleCast
UnimplementedCast
LiteralCastFromTextToIntegerFailed(String)
LiteralCastFromTextToFloatFailed(String)
LiteralCastFromTextToDecimalFailed(String)
LiteralCastToBooleanFailed(String)
LiteralCastToDateFailed(String)
LiteralCastToDataTypeFailed(DataType, String)
LiteralCastToInt8Failed(String)
LiteralCastToTimeFailed(String)
LiteralCastToTimestampFailed(String)
UnreachableLiteralCastFromNumberToInteger(String)
UnreachableLiteralCastFromNumberToFloat(String)
UnimplementedLiteralCast
UnreachableIntegerOverflow(String)
LikeOnNonString(Value, Value)
ExtractFormatNotMatched
ILikeOnNonString(Value, Value)
BigEndianExportNotSupported(String)
InvalidJsonString
JsonObjectTypeRequired
JsonArrayTypeRequired
UnreachableJsonNumberParseFailure(String)
SelectorRequiresMapOrListTypes
BinaryOperationOverflow
SqrtOnNonNumeric(Value)
Trait Implementations
sourceimpl Debug for ValueError
impl Debug for ValueError
sourceimpl Display for ValueError
impl Display for ValueError
sourceimpl Error for ValueError
impl Error for ValueError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ValueError> for Error
impl From<ValueError> for Error
sourcefn from(source: ValueError) -> Self
fn from(source: ValueError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ValueError> for ValueError
impl PartialEq<ValueError> for ValueError
sourcefn eq(&self, other: &ValueError) -> bool
fn eq(&self, other: &ValueError) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for ValueError
impl Serialize for ValueError
impl StructuralPartialEq for ValueError
Auto Trait Implementations
impl RefUnwindSafe for ValueError
impl Send for ValueError
impl Sync for ValueError
impl Unpin for ValueError
impl UnwindSafe for ValueError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more