pub fn tenant_id(cx: &Cx) -> Option<TenantId>Expand description
The tenant the request acts for, if any.
Checks a Tenant request extension first (a server-set override — the
deliberate seam app middleware and Router::handle tests use), then a
Tenant scoped value app code put on the Cx, then the signed-in user’s
membership. No request header is consulted.