pub struct FieldError { /* private fields */ }Expand description
A field-specific validation error.
Implementations§
Source§impl FieldError
impl FieldError
Sourcepub const fn new(field: FieldName, message: ErrorMessage) -> Self
pub const fn new(field: FieldName, message: ErrorMessage) -> Self
Creates a field error.
Trait Implementations§
Source§impl Clone for FieldError
impl Clone for FieldError
Source§fn clone(&self) -> FieldError
fn clone(&self) -> FieldError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldError
impl Debug for FieldError
Source§impl PartialEq for FieldError
impl PartialEq for FieldError
Source§fn eq(&self, other: &FieldError) -> bool
fn eq(&self, other: &FieldError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FieldError
impl StructuralPartialEq for FieldError
Auto Trait Implementations§
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnsafeUnpin for FieldError
impl UnwindSafe for FieldError
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