pub enum ValidateError {
InvalidDecimalValue,
MinLength(usize),
MaxLength(usize),
Pattern(&'static str),
TotalDigits(usize),
FractionDigits(usize),
LessThan(&'static str),
LessEqualThan(&'static str),
GraterThan(&'static str),
GraterEqualThan(&'static str),
}
Expand description
Error raised by different XML value validation functions.
Variants§
InvalidDecimalValue
Value is not a valid decimal.
MinLength(usize)
The string value is too short.
MaxLength(usize)
The string value is too large.
Pattern(&'static str)
The string value does not match the expected pattern.
TotalDigits(usize)
The decimal value has too much total digits.
FractionDigits(usize)
The decimal value has too much fraction digits.
LessThan(&'static str)
The decimal value is less than the expected range.
Range is defined by xs:minInclusive
.
LessEqualThan(&'static str)
The decimal value is less or equal than the expected range.
Range is defined by xs:minExclusive
.
GraterThan(&'static str)
The decimal value is greater than the expected range.
Range is defined by xs:maxInclusive
.
GraterEqualThan(&'static str)
The decimal value is greater or equal than the expected range.
Range is defined by xs:maxExclusive
.
Trait Implementations§
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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()
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnwindSafe for ValidateError
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