pub async fn rate_limit_middleware(
__arg0: State<ResourceAuthState>,
request: Request,
next: Next,
) -> ResponseExpand description
Rate limiting middleware — enforces per-authenticated-subject request quotas.
Runs after auth_middleware (which inserts AuthenticatedUser).
Defaults: 300 requests per 60-second window (~5 req/s sustained).
Returns 429 when the window quota is exceeded.