pub struct ErrorDetails {
pub message: String,
pub status: Option<u16>,
pub code: Option<String>,
pub request_id: Option<String>,
pub feature: Option<String>,
pub retry_after_seconds: Option<u64>,
pub body: Option<Value>,
}Expand description
Fields§
§message: StringHuman-readable message (gateway-provided when available, otherwise
"HTTP <status>").
status: Option<u16>HTTP status code, when the error originated from a response.
code: Option<String>Gateway error code, when present.
request_id: Option<String>Value of the X-Request-Id response header, when present.
feature: Option<String>The plan capability the request needed (on a Error::Plan).
retry_after_seconds: Option<u64>Retry-After value in seconds (on a Error::RateLimit).
body: Option<Value>Parsed error body, when present.
Trait Implementations§
Source§impl Clone for ErrorDetails
impl Clone for ErrorDetails
Source§fn clone(&self) -> ErrorDetails
fn clone(&self) -> ErrorDetails
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 ErrorDetails
impl Debug for ErrorDetails
Auto Trait Implementations§
impl Freeze for ErrorDetails
impl RefUnwindSafe for ErrorDetails
impl Send for ErrorDetails
impl Sync for ErrorDetails
impl Unpin for ErrorDetails
impl UnsafeUnpin for ErrorDetails
impl UnwindSafe for ErrorDetails
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