pub struct LocatedValidationError<'s, E>where
E: CustomExtension,{
pub error: PayloadValidationError<E>,
pub location: FullLocation<'s, E>,
}
Fields§
§error: PayloadValidationError<E>
§location: FullLocation<'s, E>
Implementations§
Source§impl<'s, E> LocatedValidationError<'s, E>where
E: CustomExtension,
impl<'s, E> LocatedValidationError<'s, E>where
E: CustomExtension,
pub fn error_message( &self, schema: &SchemaV1<<E as CustomExtension>::CustomSchema>, ) -> String
Trait Implementations§
Source§impl<'s, E> Clone for LocatedValidationError<'s, E>where
E: Clone + CustomExtension,
impl<'s, E> Clone for LocatedValidationError<'s, E>where
E: Clone + CustomExtension,
Source§fn clone(&self) -> LocatedValidationError<'s, E>
fn clone(&self) -> LocatedValidationError<'s, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'s, E> Debug for LocatedValidationError<'s, E>where
E: Debug + CustomExtension,
impl<'s, E> Debug for LocatedValidationError<'s, E>where
E: Debug + CustomExtension,
Source§impl<'s, E> PartialEq for LocatedValidationError<'s, E>where
E: PartialEq + CustomExtension,
impl<'s, E> PartialEq for LocatedValidationError<'s, E>where
E: PartialEq + CustomExtension,
Source§fn eq(&self, other: &LocatedValidationError<'s, E>) -> bool
fn eq(&self, other: &LocatedValidationError<'s, E>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'s, E> Eq for LocatedValidationError<'s, E>where
E: Eq + CustomExtension,
impl<'s, E> StructuralPartialEq for LocatedValidationError<'s, E>where
E: CustomExtension,
Auto Trait Implementations§
impl<'s, E> Freeze for LocatedValidationError<'s, E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKindLabel: Freeze,
<E as CustomExtension>::CustomValueKind: Freeze,
impl<'s, E> RefUnwindSafe for LocatedValidationError<'s, E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKindLabel: RefUnwindSafe,
<E as CustomExtension>::CustomValueKind: RefUnwindSafe,
impl<'s, E> Send for LocatedValidationError<'s, E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKindLabel: Send,
<E as CustomExtension>::CustomValueKind: Send,
impl<'s, E> Sync for LocatedValidationError<'s, E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKindLabel: Sync,
<E as CustomExtension>::CustomValueKind: Sync,
impl<'s, E> Unpin for LocatedValidationError<'s, E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKindLabel: Unpin,
<E as CustomExtension>::CustomValueKind: Unpin,
impl<'s, E> UnwindSafe for LocatedValidationError<'s, E>where
<<E as CustomExtension>::CustomSchema as CustomSchema>::CustomTypeKindLabel: UnwindSafe,
<E as CustomExtension>::CustomValueKind: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.