Re-exports§
pub use scope_guard::AcpScope;pub use scope_guard::ScopeGuard;pub use scope_guard::ScopeGuardError;pub use community_access_guard::CommunityAccessGuard;
Modules§
- community_
access_ guard community_access_guardmiddleware — Story 5.5 (refonte UX multi-rôle ACP).- scope_
guard scope_guardmiddleware — Story 1.3 (refonte UX multi-rôle ACP).
Structs§
- Authenticated
User - Authenticated user claims extracted from JWT token
- Concurrency
Limit Config - Configuration for
RequestConcurrencyLimit. - Gdpr
Rate Limit - GDPR-specific rate limiting middleware
- Gdpr
Rate Limit Config - Configuration for GDPR rate limiting
- Gdpr
Rate Limit Middleware - Gdpr
Rate Limit State - Rate limit state tracking
- Organization
Id - Organization ID extracted from authenticated user’s JWT token
- Request
Concurrency Limit - Load-shedding middleware: bounds the number of requests in flight and
rejects the excess with an explicit
429 Too Many Requests+Retry-After, instead of letting them queue silently on the DB pool until a client timeout or an upstream 502 (see module docs above). - Request
Concurrency Limit Middleware
Constants§
- DEFAULT_
MAX_ CONCURRENT_ REQUESTS - Conservative starting point: comfortably above the sqlx pool’s
max_connectionsdefault (10, cf.DB_POOL_MAX_CONNECTIONS) since a single request typically issues several short, sequential queries rather than holding one connection for its whole lifetime — seeunit_repository_impl.rs, which acquires per-call via&self.pool.