pub enum RateLimitScope {
PerInstance,
Shared,
}Expand description
Rate limiting scope.
Variants§
PerInstance
Per provider instance (isolated rate limits)
Shared across all instances with the same API key
Trait Implementations§
Source§impl Clone for RateLimitScope
impl Clone for RateLimitScope
Source§fn clone(&self) -> RateLimitScope
fn clone(&self) -> RateLimitScope
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 RateLimitScope
impl Debug for RateLimitScope
Source§impl Default for RateLimitScope
impl Default for RateLimitScope
Source§fn default() -> RateLimitScope
fn default() -> RateLimitScope
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RateLimitScope
impl<'de> Deserialize<'de> for RateLimitScope
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 PartialEq for RateLimitScope
impl PartialEq for RateLimitScope
Source§impl Serialize for RateLimitScope
impl Serialize 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