pub struct ApiErrorData {
pub message: String,
pub status_code: Option<f64>,
pub is_retryable: bool,
pub response_headers: Option<HashMap<String, String>>,
pub response_body: Option<String>,
pub metadata: Option<HashMap<String, String>>,
}Expand description
Data payload for ApiError.
Fields§
§message: StringHuman-readable error message.
status_code: Option<f64>HTTP status code returned by the provider, if available.
is_retryable: boolWhether the error is retryable.
response_headers: Option<HashMap<String, String>>Response headers from the provider, if available.
response_body: Option<String>Response body from the provider, if available.
metadata: Option<HashMap<String, String>>Additional metadata about the error.
Trait Implementations§
Source§impl Clone for ApiErrorData
impl Clone for ApiErrorData
Source§fn clone(&self) -> ApiErrorData
fn clone(&self) -> ApiErrorData
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 ApiErrorData
impl Debug for ApiErrorData
Source§impl<'de> Deserialize<'de> for ApiErrorData
impl<'de> Deserialize<'de> for ApiErrorData
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 PartialEq for ApiErrorData
impl PartialEq for ApiErrorData
Source§impl Serialize for ApiErrorData
impl Serialize for ApiErrorData
impl StructuralPartialEq for ApiErrorData
Auto Trait Implementations§
impl Freeze for ApiErrorData
impl RefUnwindSafe for ApiErrorData
impl Send for ApiErrorData
impl Sync for ApiErrorData
impl Unpin for ApiErrorData
impl UnwindSafe for ApiErrorData
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