pub struct Problem {
pub type: ProblemUri,
pub title: Option<String>,
pub status: StatusCode,
pub detail: Option<String>,
pub instance: Option<String>,
}Expand description
Reusable error response. From https://opensource.zalando.com/problem/schema.yaml.
Fields§
§type: ProblemUriAn absolute URI that identifies the problem type. When dereferenced, it SHOULD provide human-readable documentation for the problem type (e.g., using HTML).
title: Option<String>A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non-technical stakeholders and not localized); example: Service Unavailable.
status: StatusCodeThe HTTP status code generated by the origin server for this occurrence of the problem.
detail: Option<String>A human-readable explanation specific to this occurrence of the problem.
instance: Option<String>An absolute URI that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
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