pub enum NumericConversionError {
WrongType {
expected: String,
actual: String,
},
ParseInt {
cause: ParseIntError,
},
}Expand description
An error occurred while converting from an AttributeValue to a numeric type.
Variants§
WrongType
The AttributeValue was not of the expected type.
Fields
ParseInt
Failed to parse an integer value.
Fields
§
cause: ParseIntErrorThe underlying parse error.
Trait Implementations§
Source§impl Debug for NumericConversionError
impl Debug for NumericConversionError
Source§impl Display for NumericConversionError
impl Display for NumericConversionError
Source§impl Error for NumericConversionError
impl Error for NumericConversionError
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<ParseIntError> for NumericConversionError
impl From<ParseIntError> for NumericConversionError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NumericConversionError
impl RefUnwindSafe for NumericConversionError
impl Send for NumericConversionError
impl Sync for NumericConversionError
impl Unpin for NumericConversionError
impl UnwindSafe for NumericConversionError
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