pub struct DataValueError {
pub kind: DataValueErrorKind,
pub path: String,
pub message: String,
}Expand description
A data validation failure at a path within one JSON value.
Fields§
§kind: DataValueErrorKindFailure category for callers that report contract diagnostics.
path: StringJSON path rooted at $.
message: StringHuman-readable detail.
Trait Implementations§
Source§impl Clone for DataValueError
impl Clone for DataValueError
Source§impl Debug for DataValueError
impl Debug for DataValueError
Source§impl Display for DataValueError
impl Display for DataValueError
impl Eq for DataValueError
Source§impl Error for DataValueError
impl Error for DataValueError
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<DataValueError> for AdmissionError
impl From<DataValueError> for AdmissionError
Source§fn from(source: DataValueError) -> Self
fn from(source: DataValueError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DataValueError
impl PartialEq for DataValueError
impl StructuralPartialEq for DataValueError
Auto Trait Implementations§
impl Freeze for DataValueError
impl RefUnwindSafe for DataValueError
impl Send for DataValueError
impl Sync for DataValueError
impl Unpin for DataValueError
impl UnsafeUnpin for DataValueError
impl UnwindSafe for DataValueError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.