Skip to main content

Module request

Module request 

Source
Expand description

Per-Request View

A read-only bridge trait that modules can consume instead of depending on a concrete per-request carrier type. Today per-request state is scattered across plugins::QueryContext, multi_tenancy::RequestContext, analytics::QueryExecution, and auth::role_mapper::AuthorizationContext; merging them into a single struct would churn every consumer. The trait here lets new code accept &dyn RequestView (or impl RequestView) and work against any of them, while existing code keeps its native concrete types.

This is the foundation for T0-d. As new plugins and modules are added (T2.2–T2.4 especially), they should accept impl RequestView rather than reach for a module-specific carrier.

Traits§

RequestView
Read-only view of per-request metadata.