pub enum AsyncValidationError {
Issues(Vec<FieldIssue>),
Host(HostError),
}Expand description
Failure returned by crate::AsyncValidate: either domain field issues or a host/IO failure.
Variants§
Issues(Vec<FieldIssue>)
Host(HostError)
Trait Implementations§
Source§impl Clone for AsyncValidationError
impl Clone for AsyncValidationError
Source§impl Debug for AsyncValidationError
impl Debug for AsyncValidationError
Source§impl<'de> Deserialize<'de> for AsyncValidationError
impl<'de> Deserialize<'de> for AsyncValidationError
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
Source§impl Display for AsyncValidationError
impl Display for AsyncValidationError
impl Eq for AsyncValidationError
Source§impl Error for AsyncValidationError
impl Error for AsyncValidationError
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()
Source§impl From<HostError> for AsyncValidationError
impl From<HostError> for AsyncValidationError
Source§impl From<Vec<FieldIssue>> for AsyncValidationError
impl From<Vec<FieldIssue>> for AsyncValidationError
Source§fn from(issues: Vec<FieldIssue>) -> Self
fn from(issues: Vec<FieldIssue>) -> Self
Converts to this type from the input type.
Source§impl IntoAsyncError for AsyncValidationError
impl IntoAsyncError for AsyncValidationError
fn into_async_error_result(self, field: &str, _code: &str) -> AsyncCheckResult
Source§impl PartialEq for AsyncValidationError
impl PartialEq for AsyncValidationError
Source§impl Serialize for AsyncValidationError
impl Serialize for AsyncValidationError
impl StructuralPartialEq for AsyncValidationError
Auto Trait Implementations§
impl Forget for AsyncValidationError
impl Freeze for AsyncValidationError
impl Move for AsyncValidationError
impl RefUnwindSafe for AsyncValidationError
impl Send for AsyncValidationErrorwhere
RawVecInner: Send,
impl Sync for AsyncValidationErrorwhere
RawVecInner: Sync,
impl Unpin for AsyncValidationError
impl UnsafeUnpin for AsyncValidationErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<FieldIssue>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for AsyncValidationErrorwhere
RawVecInner: UnwindSafe,
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