pub struct Problem {
pub type: Option<String>,
pub title: Option<String>,
pub status: Option<i64>,
pub detail: Option<String>,
pub correlation_id: Option<String>,
pub errors: Vec<FieldError>,
pub extra: HashMap<String, Value>,
}Expand description
RFC 9457 problem document returned by the API on failure.
Fields§
§type: Option<String>§title: Option<String>§status: Option<i64>§detail: Option<String>§correlation_id: Option<String>Request identifier to quote when reporting an incident.
errors: Vec<FieldError>Field-level validation failures, present on 422 responses.
extra: HashMap<String, Value>Anything else the server included.
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
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin 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