pub struct ExemplarShapeError {
pub path: String,
pub message: String,
pub kind: ExemplarErrorKind,
}Expand description
A structural problem in an exemplar list or entry.
Fields§
§path: StringJSON-pointer path of the offending node.
message: StringHuman-readable description.
kind: ExemplarErrorKindStructural vs payload/kind mismatch.
Implementations§
Source§impl ExemplarShapeError
impl ExemplarShapeError
Sourcepub fn is_wrong_rule_kind(&self) -> bool
pub fn is_wrong_rule_kind(&self) -> bool
True when the error is a payload/kind mismatch rather than a structural one.
Trait Implementations§
Source§impl Clone for ExemplarShapeError
impl Clone for ExemplarShapeError
Source§fn clone(&self) -> ExemplarShapeError
fn clone(&self) -> ExemplarShapeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExemplarShapeError
impl Debug for ExemplarShapeError
Source§impl Display for ExemplarShapeError
impl Display for ExemplarShapeError
impl Eq for ExemplarShapeError
Source§impl PartialEq for ExemplarShapeError
impl PartialEq for ExemplarShapeError
Source§impl Serialize for ExemplarShapeError
impl Serialize for ExemplarShapeError
impl StructuralPartialEq for ExemplarShapeError
Auto Trait Implementations§
impl Freeze for ExemplarShapeError
impl RefUnwindSafe for ExemplarShapeError
impl Send for ExemplarShapeError
impl Sync for ExemplarShapeError
impl Unpin for ExemplarShapeError
impl UnsafeUnpin for ExemplarShapeError
impl UnwindSafe for ExemplarShapeError
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§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.