pub struct RateLimitEntry {
pub bucket: String,
pub rate_limit: i32,
pub source: String,
pub id: Option<String>,
}Expand description
A single rate-limit row returned by get_rate_limits, identifying the
bucket (rps/rpm/rpd), the value enforced, and whether the value comes
from the plan default or a user-set override.
Fields§
§bucket: StringWhich bucket this row applies to: rps, rpm, or rpd.
rate_limit: i32The enforced value for this bucket.
source: StringWhere the value comes from: plan_default or user_override.
id: Option<String>Row identifier. Present on user_override rows — pass it to
delete_rate_limit_override to remove the override. May be absent on
plan_default rows and cannot be deleted there.
Trait Implementations§
Source§impl Clone for RateLimitEntry
impl Clone for RateLimitEntry
Source§fn clone(&self) -> RateLimitEntry
fn clone(&self) -> RateLimitEntry
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 RateLimitEntry
impl Debug for RateLimitEntry
Source§impl<'de> Deserialize<'de> for RateLimitEntry
impl<'de> Deserialize<'de> for RateLimitEntry
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 RateLimitEntry
impl RefUnwindSafe for RateLimitEntry
impl Send for RateLimitEntry
impl Sync for RateLimitEntry
impl Unpin for RateLimitEntry
impl UnsafeUnpin for RateLimitEntry
impl UnwindSafe for RateLimitEntry
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