pub struct RateLimitDetails {
pub message: String,
pub status: Option<u16>,
pub resource: Option<String>,
pub remaining: Option<u64>,
pub reset: Option<u64>,
pub retry_after: Option<String>,
pub request_id: Option<String>,
pub graphql_errors: Vec<GraphQLError>,
}Expand description
Metadata needed to decide when to retry a rate-limited request.
Fields§
§message: String§status: Option<u16>§resource: Option<String>§remaining: Option<u64>§reset: Option<u64>§retry_after: Option<String>Original Retry-After header, in seconds or HTTP-date form.
request_id: Option<String>§graphql_errors: Vec<GraphQLError>Trait Implementations§
Source§impl Clone for RateLimitDetails
impl Clone for RateLimitDetails
Source§fn clone(&self) -> RateLimitDetails
fn clone(&self) -> RateLimitDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RateLimitDetails
impl Debug for RateLimitDetails
Source§impl Default for RateLimitDetails
impl Default for RateLimitDetails
Source§fn default() -> RateLimitDetails
fn default() -> RateLimitDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RateLimitDetails
impl RefUnwindSafe for RateLimitDetails
impl Send for RateLimitDetails
impl Sync for RateLimitDetails
impl Unpin for RateLimitDetails
impl UnsafeUnpin for RateLimitDetails
impl UnwindSafe for RateLimitDetails
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