pub struct FieldError<K = String> {
pub key: K,
pub kind: FieldErrorKind,
}Expand description
One key a submission was refused under: a form key, or a record form’s
field enum in Resource::validate_record.
Fields§
§key: KWhat the error renders under.
kind: FieldErrorKindWhy the key was refused.
Implementations§
Trait Implementations§
Source§impl<K: Clone> Clone for FieldError<K>
impl<K: Clone> Clone for FieldError<K>
Source§impl<K: Debug> Debug for FieldError<K>
impl<K: Debug> Debug for FieldError<K>
impl<K: Eq> Eq for FieldError<K>
Source§impl<K: PartialEq> PartialEq for FieldError<K>
impl<K: PartialEq> PartialEq for FieldError<K>
impl<K: PartialEq> StructuralPartialEq for FieldError<K>
Auto Trait Implementations§
impl<K> Freeze for FieldError<K>where
K: Freeze,
impl<K> RefUnwindSafe for FieldError<K>where
K: RefUnwindSafe,
impl<K> Send for FieldError<K>where
K: Send,
impl<K> Sync for FieldError<K>where
K: Sync,
impl<K> Unpin for FieldError<K>where
K: Unpin,
impl<K> UnsafeUnpin for FieldError<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for FieldError<K>where
K: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.