pub enum RateLimitScope {
Service,
Channel,
GroupPool,
Unknown(String),
}Expand description
Which spend limit blocked a request when it is not the member’s own cap
(RateLimitInfo::limit_scope).
Variants§
Service
Channel
GroupPool
A pooled group budget shared by the member’s team is used up.
Unknown(String)
A scope not yet known to this version of the crate.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitScope
impl Clone for RateLimitScope
Source§impl Debug for RateLimitScope
impl Debug for RateLimitScope
Source§impl<'de> Deserialize<'de> for RateLimitScope
impl<'de> Deserialize<'de> for RateLimitScope
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RateLimitScope
impl Display for RateLimitScope
impl Eq for RateLimitScope
Source§impl From<&str> for RateLimitScope
impl From<&str> for RateLimitScope
Source§impl Hash for RateLimitScope
impl Hash for RateLimitScope
Source§impl PartialEq for RateLimitScope
impl PartialEq for RateLimitScope
Source§impl Serialize for RateLimitScope
impl Serialize 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 UnsafeUnpin 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