pub struct RateLimitClass {
pub mount: String,
pub class: &'static str,
}Expand description
One controller’s declared rate-limit class, as returned by
Router::rate_limit_classes: the controller’s mount path and the
class label it declared via #[controller(rate_limit = "…")]. Used by a
startup coverage check that asserts every declared class has a policy.
Fields§
§mount: StringThe controller’s mount path (e.g. "api/auth").
class: &'static strThe rate-limit class label the controller declared.
Trait Implementations§
Source§impl Clone for RateLimitClass
impl Clone for RateLimitClass
Source§fn clone(&self) -> RateLimitClass
fn clone(&self) -> RateLimitClass
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 RateLimitClass
impl Debug for RateLimitClass
impl Eq for RateLimitClass
Source§impl PartialEq for RateLimitClass
impl PartialEq for RateLimitClass
Source§fn eq(&self, other: &RateLimitClass) -> bool
fn eq(&self, other: &RateLimitClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RateLimitClass
Auto Trait Implementations§
impl Freeze for RateLimitClass
impl RefUnwindSafe for RateLimitClass
impl Send for RateLimitClass
impl Sync for RateLimitClass
impl Unpin for RateLimitClass
impl UnsafeUnpin for RateLimitClass
impl UnwindSafe for RateLimitClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.