pub enum ValidationCode {
MissingRequiredValue,
TypeMismatch,
InvalidValue,
OutOfRange,
TooLong,
TooManyItems,
UnknownField,
DuplicateField,
}Expand description
A stable, caller-safe explanation for one validation failure.
Variants§
MissingRequiredValue
A required value was not provided.
TypeMismatch
A value has the wrong contract type.
InvalidValue
A value has an invalid representation.
OutOfRange
A numeric or temporal value is outside its allowed range.
TooLong
A string or byte value exceeds its allowed length.
TooManyItems
A collection exceeds its allowed item count.
UnknownField
A submitted field is not part of the active contract.
DuplicateField
A submitted record contains a field more than once.
Implementations§
Trait Implementations§
Source§impl Clone for ValidationCode
impl Clone for ValidationCode
impl Copy for ValidationCode
Source§impl Debug for ValidationCode
impl Debug for ValidationCode
impl Eq for ValidationCode
Source§impl Hash for ValidationCode
impl Hash for ValidationCode
Source§impl PartialEq for ValidationCode
impl PartialEq for ValidationCode
impl StructuralPartialEq for ValidationCode
Auto Trait Implementations§
impl Freeze for ValidationCode
impl RefUnwindSafe for ValidationCode
impl Send for ValidationCode
impl Sync for ValidationCode
impl Unpin for ValidationCode
impl UnsafeUnpin for ValidationCode
impl UnwindSafe for ValidationCode
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