pub enum RatelimitScope {
Global,
Shared,
User,
}
Expand description
Scope of a ratelimit.
Variants§
Global
Ratelimit is global, affecting the application as a whole.
Ratelimit is shared, affecting all users of the resource.
Does not affect the application’s individual buckets or global limits.
User
Ratelimit is per-resource, such as for an individual bucket.
Trait Implementations§
source§impl Clone for RatelimitScope
impl Clone for RatelimitScope
source§fn clone(&self) -> RatelimitScope
fn clone(&self) -> RatelimitScope
Returns a copy 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 RatelimitScope
impl Debug for RatelimitScope
source§impl Display for RatelimitScope
impl Display for RatelimitScope
source§impl FromStr for RatelimitScope
impl FromStr for RatelimitScope
source§impl Hash for RatelimitScope
impl Hash for RatelimitScope
source§impl PartialEq for RatelimitScope
impl PartialEq for RatelimitScope
source§impl TryFrom<&str> for RatelimitScope
impl TryFrom<&str> for RatelimitScope
impl Copy for RatelimitScope
impl Eq for RatelimitScope
impl StructuralPartialEq for RatelimitScope
Auto Trait Implementations§
impl Freeze for RatelimitScope
impl RefUnwindSafe for RatelimitScope
impl Send for RatelimitScope
impl Sync for RatelimitScope
impl Unpin for RatelimitScope
impl UnwindSafe for RatelimitScope
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)