pub struct DbValueConvertError {
pub source: DbValue,
pub target_type: &'static str,
}Expand description
Error returned when a DbValue cannot be converted to the requested type.
Used by TryFrom<DbValue> impls for i32/i64/f64/String/bool/…
and by QueryBuilder::min_internal / max_internal to surface type
mismatches when reading aggregation results.
Fields§
§source: DbValueThe DbValue that could not be converted.
target_type: &'static strThe target Rust type name (e.g. "i32").
Trait Implementations§
Source§impl Clone for DbValueConvertError
impl Clone for DbValueConvertError
Source§fn clone(&self) -> DbValueConvertError
fn clone(&self) -> DbValueConvertError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DbValueConvertError
impl Debug for DbValueConvertError
Source§impl Display for DbValueConvertError
impl Display for DbValueConvertError
Source§impl Error for DbValueConvertError
impl Error for DbValueConvertError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<DbValueConvertError> for EFError
impl From<DbValueConvertError> for EFError
Source§fn from(e: DbValueConvertError) -> Self
fn from(e: DbValueConvertError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DbValueConvertError
impl PartialEq for DbValueConvertError
impl StructuralPartialEq for DbValueConvertError
Auto Trait Implementations§
impl Freeze for DbValueConvertError
impl RefUnwindSafe for DbValueConvertError
impl Send for DbValueConvertError
impl Sync for DbValueConvertError
impl Unpin for DbValueConvertError
impl UnsafeUnpin for DbValueConvertError
impl UnwindSafe for DbValueConvertError
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