pub struct ApiErrorDetails {
pub path: Option<String>,
pub timestamp: Option<String>,
pub details: Option<Value>,
}Expand description
Extra structured fields returned alongside an API error response.
The Rerout API may surface a path and timestamp for diagnostics, and an
optional details object with field-level validation hints.
Fields§
§path: Option<String>Request path the server attached to the error, when supplied.
timestamp: Option<String>Server-side timestamp (ISO 8601), when supplied.
details: Option<Value>Raw details field from the JSON envelope, when supplied.
Trait Implementations§
Source§impl Clone for ApiErrorDetails
impl Clone for ApiErrorDetails
Source§fn clone(&self) -> ApiErrorDetails
fn clone(&self) -> ApiErrorDetails
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 ApiErrorDetails
impl Debug for ApiErrorDetails
Source§impl Default for ApiErrorDetails
impl Default for ApiErrorDetails
Source§fn default() -> ApiErrorDetails
fn default() -> ApiErrorDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiErrorDetails
impl<'de> Deserialize<'de> for ApiErrorDetails
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 ApiErrorDetails
impl RefUnwindSafe for ApiErrorDetails
impl Send for ApiErrorDetails
impl Sync for ApiErrorDetails
impl Unpin for ApiErrorDetails
impl UnsafeUnpin for ApiErrorDetails
impl UnwindSafe for ApiErrorDetails
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