pub struct RateLimitKey<'a> {
pub route: &'a str,
pub subject: RateLimitSubject<'a>,
}Expand description
Composite key for a limiter bucket. Bundles the logical route name with the subject; buckets never cross routes.
Fields§
§route: &'a strLogical route name (e.g. pod_create, write, idp_credentials).
subject: RateLimitSubject<'a>Subject identity.
Trait Implementations§
Source§impl<'a> Clone for RateLimitKey<'a>
impl<'a> Clone for RateLimitKey<'a>
Source§fn clone(&self) -> RateLimitKey<'a>
fn clone(&self) -> RateLimitKey<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for RateLimitKey<'a>
impl<'a> RefUnwindSafe for RateLimitKey<'a>
impl<'a> Send for RateLimitKey<'a>
impl<'a> Sync for RateLimitKey<'a>
impl<'a> Unpin for RateLimitKey<'a>
impl<'a> UnsafeUnpin for RateLimitKey<'a>
impl<'a> UnwindSafe for RateLimitKey<'a>
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