pub struct ApiErrorDetail {
pub message: Option<String>,
pub error_type: Option<String>,
pub param: Option<String>,
pub code: Option<String>,
}Expand description
Structured error detail returned by the API inside {"error": {...}}.
Fields§
§message: Option<String>Human-readable error description.
error_type: Option<String>Error type, e.g. invalid_request_error.
param: Option<String>The request parameter that caused the error, if any.
code: Option<String>Machine-readable error code. Some providers send numbers, so this accepts both strings and numbers.
Trait Implementations§
Source§impl Clone for ApiErrorDetail
impl Clone for ApiErrorDetail
Source§fn clone(&self) -> ApiErrorDetail
fn clone(&self) -> ApiErrorDetail
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 ApiErrorDetail
impl Debug for ApiErrorDetail
Source§impl Default for ApiErrorDetail
impl Default for ApiErrorDetail
Source§fn default() -> ApiErrorDetail
fn default() -> ApiErrorDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiErrorDetail
impl<'de> Deserialize<'de> for ApiErrorDetail
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 ApiErrorDetail
impl RefUnwindSafe for ApiErrorDetail
impl Send for ApiErrorDetail
impl Sync for ApiErrorDetail
impl Unpin for ApiErrorDetail
impl UnsafeUnpin for ApiErrorDetail
impl UnwindSafe for ApiErrorDetail
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