pub struct ValidationErrorInfo {
pub path: String,
pub message: String,
pub expected: Option<String>,
pub actual: Option<String>,
}Expand description
Information about a single validation error
Fields§
§path: StringJSON path where the error occurred (e.g., “/image/tag”)
message: StringHuman-readable error message
expected: Option<String>Expected value/type (if applicable)
actual: Option<String>Actual value/type (if applicable)
Trait Implementations§
Source§impl Clone for ValidationErrorInfo
impl Clone for ValidationErrorInfo
Source§fn clone(&self) -> ValidationErrorInfo
fn clone(&self) -> ValidationErrorInfo
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 ValidationErrorInfo
impl Debug for ValidationErrorInfo
Source§impl Hash for ValidationErrorInfo
impl Hash for ValidationErrorInfo
Source§impl PartialEq for ValidationErrorInfo
impl PartialEq for ValidationErrorInfo
impl Eq for ValidationErrorInfo
impl StructuralPartialEq for ValidationErrorInfo
Auto Trait Implementations§
impl Freeze for ValidationErrorInfo
impl RefUnwindSafe for ValidationErrorInfo
impl Send for ValidationErrorInfo
impl Sync for ValidationErrorInfo
impl Unpin for ValidationErrorInfo
impl UnwindSafe for ValidationErrorInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.