pub struct HostError {
pub code: String,
pub reason: String,
}Expand description
Infrastructure / host-resolver failure (distinct from domain FieldIssue validation errors).
Fields§
§code: String§reason: StringImplementations§
Trait Implementations§
Source§impl<R: ?Sized + Sync, S> AsyncValidate<R, S> for HostError
impl<R: ?Sized + Sync, S> AsyncValidate<R, S> for HostError
fn validate_async_with<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 ValidationContext,
_resolver: &'life2 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn validate_async<'life0, 'life1, 'async_trait>(
&'life0 self,
resolver: &'life1 R,
) -> Pin<Box<dyn Future<Output = Result<(), AsyncValidationError>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl<'de> Deserialize<'de> for HostError
impl<'de> Deserialize<'de> for HostError
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
impl Eq for HostError
Source§impl Error for HostError
impl Error for HostError
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 IntoAsyncError for HostError
impl IntoAsyncError for HostError
fn into_async_error_result(self, _field: &str, _code: &str) -> AsyncCheckResult
Source§impl<S> ScopedValidate<S> for HostError
impl<S> ScopedValidate<S> for HostError
fn validate_scoped_with( &self, _ctx: &ValidationContext, ) -> Result<(), Vec<FieldIssue>>
fn validate_scoped(&self) -> Result<(), Vec<FieldIssue>>
impl StructuralPartialEq for HostError
Source§impl Validate for HostError
impl Validate for HostError
fn validate_with(&self, _ctx: &ValidationContext) -> Result<(), Vec<FieldIssue>>
fn validate(&self) -> Result<(), Vec<FieldIssue>>
Auto Trait Implementations§
impl Forget for HostError
impl Freeze for HostError
impl Move for HostError
impl RefUnwindSafe for HostError
impl Send for HostErrorwhere
RawVecInner: Send,
impl Sync for HostErrorwhere
RawVecInner: Sync,
impl Unpin for HostError
impl UnsafeUnpin for HostError
impl UnwindSafe for HostErrorwhere
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