pub enum RateLimitResource {
Core,
Search,
Graphql,
Git,
CodeScanning,
}Expand description
Rate limit resource types.
Variants§
Core
Core API endpoints.
Search
Search endpoints (lower limit).
Graphql
GraphQL endpoint.
Git
Git operations (clone, fetch, push).
CodeScanning
Code scanning.
Implementations§
Source§impl RateLimitResource
impl RateLimitResource
Sourcepub fn default_limit(&self, authenticated: bool) -> u32
pub fn default_limit(&self, authenticated: bool) -> u32
Get the default limit for this resource.
Sourcepub fn reset_interval(&self) -> Duration
pub fn reset_interval(&self) -> Duration
Get the reset interval for this resource.
Trait Implementations§
Source§impl Clone for RateLimitResource
impl Clone for RateLimitResource
Source§fn clone(&self) -> RateLimitResource
fn clone(&self) -> RateLimitResource
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 moreimpl Copy for RateLimitResource
Source§impl Debug for RateLimitResource
impl Debug for RateLimitResource
Source§impl<'de> Deserialize<'de> for RateLimitResource
impl<'de> Deserialize<'de> for RateLimitResource
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 Display for RateLimitResource
impl Display for RateLimitResource
impl Eq for RateLimitResource
Source§impl Hash for RateLimitResource
impl Hash for RateLimitResource
Source§impl PartialEq for RateLimitResource
impl PartialEq for RateLimitResource
Source§fn eq(&self, other: &RateLimitResource) -> bool
fn eq(&self, other: &RateLimitResource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RateLimitResource
impl Serialize for RateLimitResource
impl StructuralPartialEq for RateLimitResource
Auto Trait Implementations§
impl Freeze for RateLimitResource
impl RefUnwindSafe for RateLimitResource
impl Send for RateLimitResource
impl Sync for RateLimitResource
impl Unpin for RateLimitResource
impl UnsafeUnpin for RateLimitResource
impl UnwindSafe for RateLimitResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.