pub struct Digits {
pub integer: u64,
pub fraction: u64,
}
Expand description
Maximum number of allowed integer digits and fraction digits.
The validation function can be applied in the FieldName
context.
It is implemented for all types T
that implement the HasDecimalDigits
property trait.
Fields§
§integer: u64
Maximum number of allowed integer digits (digits to the left of the decimal point)
fraction: u64
Maximum number of allowed fraction digits (digits to the right of the decimal point)
Trait Implementations§
impl Copy for Digits
impl Eq for Digits
impl StructuralPartialEq for Digits
Auto Trait Implementations§
impl Freeze for Digits
impl RefUnwindSafe for Digits
impl Send for Digits
impl Sync for Digits
impl Unpin for Digits
impl UnwindSafe for Digits
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