pub enum ValidationErrorCode {
Missing,
MissingField,
Invalid,
AlreadyExists,
NotUnique,
TooLong,
TooShort,
Custom,
}Expand description
Validation error codes.
Variants§
Missing
Field is missing.
MissingField
Field value is missing (null).
Invalid
Field value is invalid.
AlreadyExists
Resource already exists.
NotUnique
Value is not unique.
TooLong
Value is too long.
TooShort
Value is too short.
Custom
Custom error.
Trait Implementations§
Source§impl Clone for ValidationErrorCode
impl Clone for ValidationErrorCode
Source§fn clone(&self) -> ValidationErrorCode
fn clone(&self) -> ValidationErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValidationErrorCode
Source§impl Debug for ValidationErrorCode
impl Debug for ValidationErrorCode
Source§impl<'de> Deserialize<'de> for ValidationErrorCode
impl<'de> Deserialize<'de> for ValidationErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ValidationErrorCode
impl RefUnwindSafe for ValidationErrorCode
impl Send for ValidationErrorCode
impl Sync for ValidationErrorCode
impl Unpin for ValidationErrorCode
impl UnsafeUnpin for ValidationErrorCode
impl UnwindSafe for ValidationErrorCode
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