pub struct Headers {
pub x_ratelimit_limit_requests: Option<u32>,
pub x_ratelimit_limit_tokens: Option<u32>,
pub x_ratelimit_remaining_requests: Option<u32>,
pub x_ratelimit_remaining_tokens: Option<u32>,
pub x_ratelimit_reset_requests: Option<String>,
pub x_ratelimit_reset_tokens: Option<String>,
}Fields§
§x_ratelimit_limit_requests: Option<u32>The maximum number of requests that are permitted before exhausting the rate limit.
x_ratelimit_limit_tokens: Option<u32>The maximum number of tokens that are permitted before exhausting the rate limit.
x_ratelimit_remaining_requests: Option<u32>The remaining number of requests that are permitted before exhausting the rate limit.
x_ratelimit_remaining_tokens: Option<u32>The remaining number of tokens that are permitted before exhausting the rate limit.
x_ratelimit_reset_requests: Option<String>The time until the rate limit (based on requests) resets to its initial state.
x_ratelimit_reset_tokens: Option<String>The time until the rate limit (based on tokens) resets to its initial state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Headers
impl<'de> Deserialize<'de> for Headers
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
impl StructuralPartialEq for Headers
Auto Trait Implementations§
impl Freeze for Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnwindSafe for Headers
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