pub struct ValidationErrors { /* private fields */ }Expand description
A collection of validation errors.
Implementations§
Source§impl ValidationErrors
impl ValidationErrors
Sourcepub fn push(&mut self, error: ValidationError)
pub fn push(&mut self, error: ValidationError)
Add a validation error.
Sourcepub fn iter(&self) -> impl Iterator<Item = &ValidationError>
pub fn iter(&self) -> impl Iterator<Item = &ValidationError>
Get an iterator over the errors.
Sourcepub fn into_inner(self) -> Vec<ValidationError>
pub fn into_inner(self) -> Vec<ValidationError>
Convert into a vector of errors.
Sourcepub fn extend(&mut self, other: ValidationErrors)
pub fn extend(&mut self, other: ValidationErrors)
Merge another collection of errors into this one.
Trait Implementations§
Source§impl Clone for ValidationErrors
impl Clone for ValidationErrors
Source§fn clone(&self) -> ValidationErrors
fn clone(&self) -> ValidationErrors
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 Debug for ValidationErrors
impl Debug for ValidationErrors
Source§impl Default for ValidationErrors
impl Default for ValidationErrors
Source§fn default() -> ValidationErrors
fn default() -> ValidationErrors
Returns the “default value” for a type. Read more
Source§impl Display for ValidationErrors
impl Display for ValidationErrors
Source§impl Error for ValidationErrors
impl Error for ValidationErrors
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ValidationError> for ValidationErrors
impl From<ValidationError> for ValidationErrors
Source§fn from(error: ValidationError) -> Self
fn from(error: ValidationError) -> Self
Converts to this type from the input type.
Source§impl From<Vec<ValidationError>> for ValidationErrors
impl From<Vec<ValidationError>> for ValidationErrors
Source§fn from(errors: Vec<ValidationError>) -> Self
fn from(errors: Vec<ValidationError>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ValidationErrors
impl PartialEq for ValidationErrors
impl StructuralPartialEq for ValidationErrors
Auto Trait Implementations§
impl Freeze for ValidationErrors
impl RefUnwindSafe for ValidationErrors
impl Send for ValidationErrors
impl Sync for ValidationErrors
impl Unpin for ValidationErrors
impl UnsafeUnpin for ValidationErrors
impl UnwindSafe for ValidationErrors
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