pub enum ErrorType {
Regex(RegexError),
Length(LengthError),
Range(RangeError),
Model(ModelValidatorError),
Enumer(EnumError),
Value,
Other,
}
Variants§
Regex(RegexError)
Length(LengthError)
Range(RangeError)
Model(ModelValidatorError)
Enumer(EnumError)
Value
Other
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorType
impl<'de> Deserialize<'de> for ErrorType
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ErrorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ErrorType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<LengthError> for ErrorType
impl From<LengthError> for ErrorType
source§fn from(value: LengthError) -> ErrorType
fn from(value: LengthError) -> ErrorType
Converts to this type from the input type.
source§impl From<ModelValidatorError> for ErrorType
impl From<ModelValidatorError> for ErrorType
source§fn from(value: ModelValidatorError) -> ErrorType
fn from(value: ModelValidatorError) -> ErrorType
Converts to this type from the input type.
source§impl From<RangeError> for ErrorType
impl From<RangeError> for ErrorType
source§fn from(value: RangeError) -> ErrorType
fn from(value: RangeError) -> ErrorType
Converts to this type from the input type.
source§impl From<RegexError> for ErrorType
impl From<RegexError> for ErrorType
source§fn from(value: RegexError) -> ErrorType
fn from(value: RegexError) -> ErrorType
Converts to this type from the input type.
source§impl Serialize for ErrorType
impl Serialize for ErrorType
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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