pub enum ResponseDetails {
Json {
category: JsonErrorCategory,
line: usize,
column: usize,
},
FieldType {
expected: JsonValueKind,
actual: JsonValueKind,
},
Discriminator {
actual: String,
},
Identity {
expected: String,
actual: String,
},
Index {
index: usize,
available: usize,
},
Size {
observed: usize,
},
}Expand description
Exact response observations, accessed deliberately because values may be sensitive.
The corresponding trusted field name remains in ResponseViolation.
Formatting this value never prints observed strings.
Variants§
Json
Parser location and category; line and column use the parser’s numbering.
Fields
§
category: JsonErrorCategoryParser error category.
FieldType
A field was absent or had the wrong JSON shape.
Discriminator
Unrecognized native discriminator text.
Identity
Two identifiers did not agree.
Index
An index was outside the available collection.
Size
Observed bytes when a response limit was exceeded.
Trait Implementations§
Source§impl Clone for ResponseDetails
impl Clone for ResponseDetails
Source§impl Debug for ResponseDetails
impl Debug for ResponseDetails
impl Eq for ResponseDetails
Source§impl PartialEq for ResponseDetails
impl PartialEq for ResponseDetails
Source§impl Serialize for ResponseDetails
impl Serialize for ResponseDetails
impl StructuralPartialEq for ResponseDetails
Auto Trait Implementations§
impl Freeze for ResponseDetails
impl RefUnwindSafe for ResponseDetails
impl Send for ResponseDetails
impl Sync for ResponseDetails
impl Unpin for ResponseDetails
impl UnsafeUnpin for ResponseDetails
impl UnwindSafe for ResponseDetails
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.