pub struct HttpFailure {
pub status: u16,
pub body: String,
pub request_id: Option<String>,
pub retry_after_secs: Option<u64>,
pub hint: Option<String>,
}Expand description
The parts of a non-2xx answer worth keeping.
Fields§
§status: u16§body: StringThe server’s own words, clipped. Usually a JSON error object; sometimes an HTML page from a proxy, which is itself the diagnosis.
request_id: Option<String>x-request-id (or request-id) if the server sent one — the thing support asks for.
retry_after_secs: Option<u64>Retry-After in seconds, when the server said how long to wait.
hint: Option<String>What to do about it, when we can tell. Names the option and the model, because “HTTP 400: unknown field” is not something a person can act on.
Trait Implementations§
Source§impl Clone for HttpFailure
impl Clone for HttpFailure
Source§impl Debug for HttpFailure
impl Debug for HttpFailure
Source§impl Default for HttpFailure
impl Default for HttpFailure
Source§impl Display for HttpFailure
impl Display for HttpFailure
impl Eq for HttpFailure
Source§impl PartialEq for HttpFailure
impl PartialEq for HttpFailure
impl StructuralPartialEq for HttpFailure
Auto Trait Implementations§
impl Forget for HttpFailure
impl Freeze for HttpFailure
impl Move for HttpFailure
impl RefUnwindSafe for HttpFailure
impl Send for HttpFailurewhere
RawVecInner: Send,
impl Sync for HttpFailurewhere
RawVecInner: Sync,
impl Unpin for HttpFailure
impl UnsafeUnpin for HttpFailure
impl UnwindSafe for HttpFailurewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.