pub struct Adjustment {
pub path: String,
pub code: String,
pub message: String,
pub severity: Severity,
}Expand description
One thing a writer changed to make the data fit the target format.
Mirrors Python’s Adjustment NamedTuple field-for-field.
Fields§
§path: StringSame path style as validation, e.g. "$.order.total".
code: StringStable, machine-checkable code, e.g. "null.omitted".
message: StringHuman-readable sentence.
severity: SeverityThe severity level of this adjustment.
Trait Implementations§
Source§impl Clone for Adjustment
impl Clone for Adjustment
Source§fn clone(&self) -> Adjustment
fn clone(&self) -> Adjustment
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 Adjustment
impl Debug for Adjustment
impl Eq for Adjustment
Source§impl PartialEq for Adjustment
impl PartialEq for Adjustment
Source§fn eq(&self, other: &Adjustment) -> bool
fn eq(&self, other: &Adjustment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Adjustment
Auto Trait Implementations§
impl Freeze for Adjustment
impl RefUnwindSafe for Adjustment
impl Send for Adjustment
impl Sync for Adjustment
impl Unpin for Adjustment
impl UnsafeUnpin for Adjustment
impl UnwindSafe for Adjustment
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more