Trait DecimalValidator

Source
pub trait DecimalValidator {
    // Required methods
    fn be_larger_than(self, limit: Decimal) -> ValidationResult<Decimal>;
    fn be_smaller_than(self, limit: Decimal) -> ValidationResult<Decimal>;
    fn be_positive(self) -> ValidationResult<Decimal>;
    fn be_negative(self) -> ValidationResult<Decimal>;
    fn be_of_scale(self, precision: u32) -> ValidationResult<Decimal>;
}

Required Methods§

Implementors§