pub struct GdprRateLimit { /* private fields */ }Expand description
GDPR-specific rate limiting middleware
Only applies rate limits to GDPR-related endpoints:
/api/v1/gdpr/*/api/v1/admin/gdpr/*
Implementations§
Source§impl GdprRateLimit
impl GdprRateLimit
pub fn new(config: GdprRateLimitConfig) -> Self
Trait Implementations§
Source§impl Clone for GdprRateLimit
impl Clone for GdprRateLimit
Source§fn clone(&self) -> GdprRateLimit
fn clone(&self) -> GdprRateLimit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, B> Transform<S, ServiceRequest> for GdprRateLimitwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: MessageBody + 'static,
impl<S, B> Transform<S, ServiceRequest> for GdprRateLimitwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: MessageBody + 'static,
Source§type Transform = GdprRateLimitMiddleware<S>
type Transform = GdprRateLimitMiddleware<S>
The
TransformService value created by this factorySource§type Future = Ready<Result<<GdprRateLimit as Transform<S, ServiceRequest>>::Transform, <GdprRateLimit as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<GdprRateLimit as Transform<S, ServiceRequest>>::Transform, <GdprRateLimit as Transform<S, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl Freeze for GdprRateLimit
impl RefUnwindSafe for GdprRateLimit
impl Send for GdprRateLimit
impl Sync for GdprRateLimit
impl Unpin for GdprRateLimit
impl UnwindSafe for GdprRateLimit
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.