[−][src]Struct form_validation::ValidationErrors
A collection of ValidationErrors as a result of validating the fields of a form.
Fields
errors: Vec<ValidationError<Key>>
Implementations
impl<Key> ValidationErrors<Key> where
Key: PartialEq + Clone,
[src]
Key: PartialEq + Clone,
pub fn new(errors: Vec<ValidationError<Key>>) -> Self
[src]
Create a new ValidationErrors
.
pub fn get(&self, key: &Key) -> Option<ValidationErrors<Key>>
[src]
Get errors associated with the specified field key, or None
if there are no errors for that field.
pub fn is_empty(&self) -> bool
[src]
Returns true if there are no errors in this collection.
pub fn extend(&mut self, errors: ValidationErrors<Key>)
[src]
Extend this collection of errors with the contents of another collection.
pub fn len(&self) -> usize
[src]
The number of errors in this collection.
Trait Implementations
impl<Key: Clone> Clone for ValidationErrors<Key>
[src]
fn clone(&self) -> ValidationErrors<Key>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Key: Debug> Debug for ValidationErrors<Key>
[src]
impl<Key> Default for ValidationErrors<Key>
[src]
impl<Key> Display for ValidationErrors<Key>
[src]
impl<Key> Error for ValidationErrors<Key> where
Key: Debug,
[src]
Key: Debug,
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<Key> From<ValidationError<Key>> for ValidationErrors<Key> where
Key: Clone + PartialEq,
[src]
Key: Clone + PartialEq,
fn from(err: ValidationError<Key>) -> Self
[src]
impl<Key> PartialEq<ValidationErrors<Key>> for ValidationErrors<Key> where
Key: PartialEq,
[src]
Key: PartialEq,
Auto Trait Implementations
impl<Key> !RefUnwindSafe for ValidationErrors<Key>
impl<Key> !Send for ValidationErrors<Key>
impl<Key> !Sync for ValidationErrors<Key>
impl<Key> Unpin for ValidationErrors<Key> where
Key: Unpin,
Key: Unpin,
impl<Key> !UnwindSafe for ValidationErrors<Key>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,