[][src]Struct form_validation::ValidationErrors

pub struct ValidationErrors<Key> {
    pub errors: Vec<ValidationError<Key>>,
}

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]

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]

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]

impl<Key> From<ValidationError<Key>> for ValidationErrors<Key> where
    Key: Clone + PartialEq
[src]

impl<Key> PartialEq<ValidationErrors<Key>> for ValidationErrors<Key> where
    Key: PartialEq
[src]

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

impl<Key> !UnwindSafe for ValidationErrors<Key>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,