pub struct RateLimitKey {
pub key: String,
pub fell_back: bool,
}Expand description
Result of rate_limit_key_ip_or_unknown: the key string plus whether
the "unknown" fallback was used. Callers that want to warn on
unkeyable traffic (rate limiter, throttler) consume this and emit the
diagnostic themselves — nestrs-core stays free of the tracing
dependency.
Fields§
§key: String§fell_back: boolImplementations§
Source§impl RateLimitKey
impl RateLimitKey
Trait Implementations§
Source§impl Clone for RateLimitKey
impl Clone for RateLimitKey
Source§impl Debug for RateLimitKey
impl Debug for RateLimitKey
impl Eq for RateLimitKey
Source§impl PartialEq for RateLimitKey
impl PartialEq for RateLimitKey
impl StructuralPartialEq for RateLimitKey
Auto Trait Implementations§
impl Freeze for RateLimitKey
impl RefUnwindSafe for RateLimitKey
impl Send for RateLimitKey
impl Sync for RateLimitKey
impl Unpin for RateLimitKey
impl UnsafeUnpin for RateLimitKey
impl UnwindSafe for RateLimitKey
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