#[non_exhaustive]pub struct ProblemDetails {
pub type_uri: String,
pub title: Option<String>,
pub status: Option<StatusCode>,
pub detail: Option<String>,
pub instance: Option<String>,
pub extensions: Map<String, Value>,
}Available on crate feature
api only.Expand description
RFC 9457 details from an application/problem+json response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_uri: StringProblem type URI reference. Defaults to about:blank.
title: Option<String>Short human-readable summary of the problem type.
status: Option<StatusCode>HTTP status reported by the origin. Error::status gives the wire status.
detail: Option<String>Explanation specific to this occurrence.
instance: Option<String>URI reference identifying this occurrence.
extensions: Map<String, Value>Application-defined members, including nested JSON values.
Trait Implementations§
Source§impl Clone for ProblemDetails
impl Clone for ProblemDetails
Source§impl Debug for ProblemDetails
impl Debug for ProblemDetails
impl Eq for ProblemDetails
Source§impl PartialEq for ProblemDetails
impl PartialEq for ProblemDetails
impl StructuralPartialEq for ProblemDetails
Auto Trait Implementations§
impl Forget for ProblemDetails
impl Freeze for ProblemDetails
impl Move for ProblemDetails
impl RefUnwindSafe for ProblemDetails
impl Send for ProblemDetails
impl Sync for ProblemDetails
impl Unpin for ProblemDetails
impl UnsafeUnpin for ProblemDetails
impl UnwindSafe for ProblemDetails
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.