pub struct RetryAdvice {
pub after_seconds: u64,
}Expand description
Retry advice intended for API clients.
When present, HTTP adapters set the Retry-After header with the number of
seconds.
Fields§
§after_seconds: u64Number of seconds the client should wait before retrying.
Trait Implementations§
Source§impl Clone for RetryAdvice
impl Clone for RetryAdvice
Source§fn clone(&self) -> RetryAdvice
fn clone(&self) -> RetryAdvice
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 RetryAdvice
impl Debug for RetryAdvice
Source§impl<'de> Deserialize<'de> for RetryAdvice
impl<'de> Deserialize<'de> for RetryAdvice
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 RetryAdvice
impl PartialEq for RetryAdvice
Source§impl Serialize for RetryAdvice
impl Serialize for RetryAdvice
impl Copy for RetryAdvice
impl Eq for RetryAdvice
impl StructuralPartialEq for RetryAdvice
Auto Trait Implementations§
impl Freeze for RetryAdvice
impl RefUnwindSafe for RetryAdvice
impl Send for RetryAdvice
impl Sync for RetryAdvice
impl Unpin for RetryAdvice
impl UnwindSafe for RetryAdvice
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