pub enum DecimalSpecError {
PrecisionOutOfRange {
precision: u8,
},
ScaleExceedsPrecision {
precision: u8,
scale: u8,
},
}Expand description
A safe validation failure for a decimal specification.
Variants§
PrecisionOutOfRange
Precision is not in 1..=38.
ScaleExceedsPrecision
Scale is greater than precision.
Trait Implementations§
Source§impl Clone for DecimalSpecError
impl Clone for DecimalSpecError
impl Copy for DecimalSpecError
Source§impl Debug for DecimalSpecError
impl Debug for DecimalSpecError
Source§impl Display for DecimalSpecError
impl Display for DecimalSpecError
impl Eq for DecimalSpecError
Source§impl Error for DecimalSpecError
impl Error for DecimalSpecError
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 PartialEq for DecimalSpecError
impl PartialEq for DecimalSpecError
impl StructuralPartialEq for DecimalSpecError
Auto Trait Implementations§
impl Freeze for DecimalSpecError
impl RefUnwindSafe for DecimalSpecError
impl Send for DecimalSpecError
impl Sync for DecimalSpecError
impl Unpin for DecimalSpecError
impl UnsafeUnpin for DecimalSpecError
impl UnwindSafe for DecimalSpecError
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