pub struct ResponseMetadata {
pub status: Option<u16>,
pub retry_after: Option<Duration>,
}Expand description
Captures metadata from the most recent HTTP response for downstream error mapping.
Additional metadata fields may be added in future releases, so downstream code should construct values using field names instead of struct update syntax.
Fields§
§status: Option<u16>HTTP status code returned by the token endpoint, if available.
retry_after: Option<Duration>Retry-After hint expressed as a relative duration.
Trait Implementations§
Source§impl Clone for ResponseMetadata
impl Clone for ResponseMetadata
Source§fn clone(&self) -> ResponseMetadata
fn clone(&self) -> ResponseMetadata
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 ResponseMetadata
impl Debug for ResponseMetadata
Source§impl Default for ResponseMetadata
impl Default for ResponseMetadata
Source§fn default() -> ResponseMetadata
fn default() -> ResponseMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResponseMetadata
impl RefUnwindSafe for ResponseMetadata
impl Send for ResponseMetadata
impl Sync for ResponseMetadata
impl Unpin for ResponseMetadata
impl UnwindSafe for ResponseMetadata
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