pub struct ObjectValidationError { /* private fields */ }Expand description
Contains all attribute validation errors for an Object.
Implementations§
Source§impl ObjectValidationError
impl ObjectValidationError
Sourcepub fn iter_errors(&self) -> impl Iterator<Item = &AttributeError>
pub fn iter_errors(&self) -> impl Iterator<Item = &AttributeError>
Iterate over the attribute errors.
Sourcepub fn iter_indexed(&self) -> impl Iterator<Item = (usize, &AttributeError)>
pub fn iter_indexed(&self) -> impl Iterator<Item = (usize, &AttributeError)>
Iterate over attribute errors together with the index of the offending attribute.
Sourcepub fn into_errors(self) -> Vec<(usize, AttributeError)>
pub fn into_errors(self) -> Vec<(usize, AttributeError)>
Return attribute errors together with the index of the offending attribute.
Trait Implementations§
Source§impl Debug for ObjectValidationError
impl Debug for ObjectValidationError
Source§impl Display for ObjectValidationError
impl Display for ObjectValidationError
Source§impl Error for ObjectValidationError
impl Error for ObjectValidationError
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()
Auto Trait Implementations§
impl Freeze for ObjectValidationError
impl RefUnwindSafe for ObjectValidationError
impl Send for ObjectValidationError
impl Sync for ObjectValidationError
impl Unpin for ObjectValidationError
impl UnwindSafe for ObjectValidationError
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