pub struct APIResponseHeaders {
pub retry_after: Option<u64>,
pub reset: Option<u64>,
pub rate_limit: Option<u64>,
pub limit: Option<u64>,
pub extra_other: Vec<(String, String)>,
}Expand description
API Response Headers struct
Fields§
§retry_after: Option<u64>Retry-After header value (in seconds)
reset: Option<u64>X-RateLimit-Reset header value (timestamp or seconds)
rate_limit: Option<u64>X-RateLimit-Remaining header value (number of remaining requests)
limit: Option<u64>X-RateLimit-Limit header value (maximum allowed requests)
extra_other: Vec<(String, String)>Additional custom headers as key-value pairs
Trait Implementations§
Source§impl Clone for APIResponseHeaders
impl Clone for APIResponseHeaders
Source§fn clone(&self) -> APIResponseHeaders
fn clone(&self) -> APIResponseHeaders
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 moreAuto Trait Implementations§
impl Freeze for APIResponseHeaders
impl RefUnwindSafe for APIResponseHeaders
impl Send for APIResponseHeaders
impl Sync for APIResponseHeaders
impl Unpin for APIResponseHeaders
impl UnwindSafe for APIResponseHeaders
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