pub enum QuotaScope {
Global,
Organization,
Project,
Key,
Unknown,
}
Expand description
The scope that a quota applies to.
Except for the Unknown
variant, this type directly translates to the variants of
RateLimitScope
which are used by rate limits.
Variants§
Global
Global scope, matches everything.
Organization
The organization that this project belongs to.
This is the top-level scope.
Project
The project.
This is a sub-scope of Organization
.
Key
A project key, which corresponds to a DSN entry.
This is a sub-scope of Project
.
Unknown
Any other scope that is not known by this Relay.
Implementations§
Trait Implementations§
source§impl Clone for QuotaScope
impl Clone for QuotaScope
source§fn clone(&self) -> QuotaScope
fn clone(&self) -> QuotaScope
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 QuotaScope
impl Debug for QuotaScope
source§impl<'de> Deserialize<'de> for QuotaScope
impl<'de> Deserialize<'de> for QuotaScope
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 QuotaScope
impl Display for QuotaScope
source§impl FromStr for QuotaScope
impl FromStr for QuotaScope
source§impl Hash for QuotaScope
impl Hash for QuotaScope
source§impl Ord for QuotaScope
impl Ord for QuotaScope
source§fn cmp(&self, other: &QuotaScope) -> Ordering
fn cmp(&self, other: &QuotaScope) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for QuotaScope
impl PartialEq for QuotaScope
source§impl PartialOrd for QuotaScope
impl PartialOrd for QuotaScope
source§impl Serialize for QuotaScope
impl Serialize for QuotaScope
impl Copy for QuotaScope
impl Eq for QuotaScope
impl StructuralPartialEq for QuotaScope
Auto Trait Implementations§
impl Freeze for QuotaScope
impl RefUnwindSafe for QuotaScope
impl Send for QuotaScope
impl Sync for QuotaScope
impl Unpin for QuotaScope
impl UnwindSafe for QuotaScope
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
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more