pub struct RateLimitConfig {Show 14 fields
pub oauth_public_per_second: u64,
pub oauth_auth_per_second: u64,
pub contexts_per_second: u64,
pub tasks_per_second: u64,
pub artifacts_per_second: u64,
pub agent_registry_per_second: u64,
pub agents_per_second: u64,
pub mcp_registry_per_second: u64,
pub mcp_per_second: u64,
pub stream_per_second: u64,
pub content_per_second: u64,
pub burst_multiplier: u64,
pub disabled: bool,
pub tier_multipliers: TierMultipliers,
}Fields§
§oauth_public_per_second: u64§oauth_auth_per_second: u64§contexts_per_second: u64§tasks_per_second: u64§artifacts_per_second: u64§agent_registry_per_second: u64§agents_per_second: u64§mcp_registry_per_second: u64§mcp_per_second: u64§stream_per_second: u64§content_per_second: u64§burst_multiplier: u64§disabled: bool§tier_multipliers: TierMultipliersImplementations§
Source§impl RateLimitConfig
impl RateLimitConfig
pub fn production() -> Self
pub fn testing() -> Self
pub fn disabled() -> Self
pub fn effective_limit(&self, base_rate: u64, tier: RateLimitTier) -> u64
pub const fn tier_multiplier(&self, tier: RateLimitTier) -> f64
Trait Implementations§
Source§impl Clone for RateLimitConfig
impl Clone for RateLimitConfig
Source§fn clone(&self) -> RateLimitConfig
fn clone(&self) -> RateLimitConfig
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 RateLimitConfig
impl Debug for RateLimitConfig
Source§impl Default for RateLimitConfig
impl Default for RateLimitConfig
Source§impl From<&RateLimitsConfig> for RateLimitConfig
impl From<&RateLimitsConfig> for RateLimitConfig
Source§fn from(config: &RateLimitsConfig) -> Self
fn from(config: &RateLimitsConfig) -> Self
Converts to this type from the input type.
impl Copy for RateLimitConfig
Auto Trait Implementations§
impl Freeze for RateLimitConfig
impl RefUnwindSafe for RateLimitConfig
impl Send for RateLimitConfig
impl Sync for RateLimitConfig
impl Unpin for RateLimitConfig
impl UnwindSafe for RateLimitConfig
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