pub struct RateEnvelope {
pub global_rpm: u32,
pub per_source_rpm: u32,
pub tokens_per_minute: u64,
pub burst_multiplier: f32,
}Expand description
Rate limits envelope
Fields§
§global_rpm: u32Requests per minute (global)
per_source_rpm: u32Requests per minute (per source)
tokens_per_minute: u64Tokens per minute
burst_multiplier: f32Burst multiplier (allows temporary burst above limit)
Trait Implementations§
Source§impl Clone for RateEnvelope
impl Clone for RateEnvelope
Source§fn clone(&self) -> RateEnvelope
fn clone(&self) -> RateEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RateEnvelope
impl Debug for RateEnvelope
Source§impl Default for RateEnvelope
impl Default for RateEnvelope
Source§impl<'de> Deserialize<'de> for RateEnvelope
impl<'de> Deserialize<'de> for RateEnvelope
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
Auto Trait Implementations§
impl Freeze for RateEnvelope
impl RefUnwindSafe for RateEnvelope
impl Send for RateEnvelope
impl Sync for RateEnvelope
impl Unpin for RateEnvelope
impl UnsafeUnpin for RateEnvelope
impl UnwindSafe for RateEnvelope
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