pub struct ApiErrorDetails {
pub code: String,
pub message: String,
pub details: Option<Value>,
pub retryable: Option<bool>,
pub timestamp: Option<String>,
pub request_id: Option<String>,
}Expand description
Detailed information about an API error.
Fields§
§code: StringA machine-readable error code.
message: StringA human-readable error message.
details: Option<Value>Additional, structured details about the error.
retryable: Option<bool>Indicates whether the request that caused this error can be retried.
timestamp: Option<String>The timestamp of when the error occurred.
request_id: Option<String>The unique ID of the request.
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 · 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<'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 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