pub struct ValidationErrors {
pub errors: Vec<ValidationErrorDetails>,
}
Expand description
Collection of validation errors
Fields§
§errors: Vec<ValidationErrorDetails>
Implementations§
Source§impl ValidationErrors
impl ValidationErrors
Sourcepub fn add(&mut self, error: ValidationErrorDetails)
pub fn add(&mut self, error: ValidationErrorDetails)
Adds a validation error
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Checks if there are any validation errors
Sourcepub fn into_error(self) -> RustisanError
pub fn into_error(self) -> RustisanError
Converts to a RustisanError
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§impl<'de> Deserialize<'de> for ValidationErrors
impl<'de> Deserialize<'de> for ValidationErrors
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ValidationErrors
impl RefUnwindSafe for ValidationErrors
impl Send for ValidationErrors
impl Sync for ValidationErrors
impl Unpin 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