pub enum DuckDBConversionError {
TypeMismatch {
expected: duckdb_type,
found: duckdb_type,
},
ConversionError(String),
NullValue,
PrecisionLoss(String),
}Expand description
Describes why a value conversion from or to DuckDB failed.
Variants§
TypeMismatch
The DuckDB column type did not match the expected Rust type.
Fields
§
expected: duckdb_typeThe type that was expected.
§
found: duckdb_typeThe type that was actually found.
ConversionError(String)
A general conversion error with a description.
NullValue
A null value was encountered where a non-null value was required.
PrecisionLoss(String)
The conversion would lose precision (e.g. Decimal scale overflow).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DuckDBConversionError
impl RefUnwindSafe for DuckDBConversionError
impl Send for DuckDBConversionError
impl Sync for DuckDBConversionError
impl Unpin for DuckDBConversionError
impl UnsafeUnpin for DuckDBConversionError
impl UnwindSafe for DuckDBConversionError
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