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>HTTP status of the response. GraphQL quota errors arrive with HTTP 200.
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§impl Debug for RateLimitDetails
impl Debug for RateLimitDetails
Source§impl Default for RateLimitDetails
impl Default for RateLimitDetails
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