pub struct MaxDecimalPlaces { /* private fields */ }Expand description
MaxDecimalPlaces
Enforces an upper bound on fractional precision for Decimal values.
Values with a larger scale than target are rejected.
Implementations§
Trait Implementations§
Source§impl Clone for MaxDecimalPlaces
impl Clone for MaxDecimalPlaces
Source§impl Debug for MaxDecimalPlaces
impl Debug for MaxDecimalPlaces
Source§impl Default for MaxDecimalPlaces
impl Default for MaxDecimalPlaces
Source§impl Path for MaxDecimalPlaces
impl Path for MaxDecimalPlaces
Source§impl Validator<Decimal> for MaxDecimalPlaces
impl Validator<Decimal> for MaxDecimalPlaces
fn validate(&self, n: &Decimal, ctx: &mut dyn VisitorContext)
Auto Trait Implementations§
impl Freeze for MaxDecimalPlaces
impl RefUnwindSafe for MaxDecimalPlaces
impl Send for MaxDecimalPlaces
impl Sync for MaxDecimalPlaces
impl Unpin for MaxDecimalPlaces
impl UnsafeUnpin for MaxDecimalPlaces
impl UnwindSafe for MaxDecimalPlaces
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