pub struct ProblemDetails {
pub type_uri: String,
pub title: String,
pub status: u16,
pub detail: String,
pub instance: Option<String>,
pub domain: String,
pub code: String,
pub internal_code: u16,
pub details: Option<Value>,
pub request_id: Option<String>,
}Expand description
An RFC 9457 problem document.
Fields§
§type_uri: StringURI identifying the problem type.
title: StringShort, human-readable summary of the problem type. Stable per type.
status: u16HTTP status code of the response.
detail: StringHuman-readable explanation specific to this occurrence.
instance: Option<String>URI identifying this specific occurrence.
domain: StringDomain the error originated from (e.g. "account").
code: StringError code as string (e.g. "ACCOUNT_INSUFFICIENT_FUNDS").
internal_code: u16Internal code for support/debugging (e.g. 10001).
details: Option<Value>Additional context.
request_id: Option<String>Request ID for tracing.
Trait Implementations§
Source§impl Clone for ProblemDetails
impl Clone for ProblemDetails
Source§fn clone(&self) -> ProblemDetails
fn clone(&self) -> ProblemDetails
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 ProblemDetails
impl Debug for ProblemDetails
Source§impl<'de> Deserialize<'de> for ProblemDetails
impl<'de> Deserialize<'de> for ProblemDetails
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
Source§impl From<&CqrsError> for ProblemDetails
impl From<&CqrsError> for ProblemDetails
Source§impl From<CqrsError> for ProblemDetails
impl From<CqrsError> for ProblemDetails
Auto Trait Implementations§
impl Freeze 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