pub struct ValidationErrorCollection {
pub errors: Vec<ValidationFieldError>,
}Expand description
Validation error aggregator - collects multiple validation errors.
Fields§
§errors: Vec<ValidationFieldError>All collected validation errors.
Implementations§
Source§impl ValidationErrorCollection
impl ValidationErrorCollection
Sourcepub fn add_error(&mut self, error: ValidationFieldError)
pub fn add_error(&mut self, error: ValidationFieldError)
Add an error to the collection.
Sourcepub fn to_error(&self) -> FraiseQLError
pub fn to_error(&self) -> FraiseQLError
Convert to a FraiseQL error.
Trait Implementations§
Source§impl Clone for ValidationErrorCollection
impl Clone for ValidationErrorCollection
Source§fn clone(&self) -> ValidationErrorCollection
fn clone(&self) -> ValidationErrorCollection
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 ValidationErrorCollection
impl Debug for ValidationErrorCollection
Source§impl Default for ValidationErrorCollection
impl Default for ValidationErrorCollection
Source§fn default() -> ValidationErrorCollection
fn default() -> ValidationErrorCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationErrorCollection
impl RefUnwindSafe for ValidationErrorCollection
impl Send for ValidationErrorCollection
impl Sync for ValidationErrorCollection
impl Unpin for ValidationErrorCollection
impl UnsafeUnpin for ValidationErrorCollection
impl UnwindSafe for ValidationErrorCollection
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