pub struct QuotaRow<'a> {
pub pattern: &'static str,
pub method: Option<&'a Method>,
pub matching: Matching,
pub buckets: Vec<EffectiveQuota>,
}Expand description
One row of a RateLimiter, as RateLimiter::rows reports it.
Fields§
§pattern: &'static strThe path pattern.
method: Option<&'a Method>The method the row is scoped to. None matches every method.
matching: MatchingHow pattern is matched.
buckets: Vec<EffectiveQuota>The row’s buckets, in the order a request awaits them.
Trait Implementations§
impl<'a> Eq for QuotaRow<'a>
impl<'a> StructuralPartialEq for QuotaRow<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuotaRow<'a>
impl<'a> RefUnwindSafe for QuotaRow<'a>
impl<'a> Send for QuotaRow<'a>
impl<'a> Sync for QuotaRow<'a>
impl<'a> Unpin for QuotaRow<'a>
impl<'a> UnsafeUnpin for QuotaRow<'a>
impl<'a> UnwindSafe for QuotaRow<'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