pub enum RateLimitContext {
App,
Installation(InstallationId),
}Expand description
Authentication context for rate limit tracking.
GitHub enforces separate rate limits for app-level and installation-level operations. This enum distinguishes between the two contexts.
§Examples
use github_bot_sdk::client::RateLimitContext;
use github_bot_sdk::auth::InstallationId;
// App-level context (using JWT)
let app_context = RateLimitContext::App;
// Installation-level context (using installation token)
let install_context = RateLimitContext::Installation(InstallationId::new(12345));Variants§
App
App-level operations (authenticated with JWT)
Installation(InstallationId)
Installation-level operations (authenticated with installation token)
Trait Implementations§
Source§impl Clone for RateLimitContext
impl Clone for RateLimitContext
Source§fn clone(&self) -> RateLimitContext
fn clone(&self) -> RateLimitContext
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 moreSource§impl Debug for RateLimitContext
impl Debug for RateLimitContext
Source§impl Hash for RateLimitContext
impl Hash for RateLimitContext
Source§impl PartialEq for RateLimitContext
impl PartialEq for RateLimitContext
impl Eq for RateLimitContext
impl StructuralPartialEq for RateLimitContext
Auto Trait Implementations§
impl Freeze for RateLimitContext
impl RefUnwindSafe for RateLimitContext
impl Send for RateLimitContext
impl Sync for RateLimitContext
impl Unpin for RateLimitContext
impl UnsafeUnpin for RateLimitContext
impl UnwindSafe for RateLimitContext
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.