//! Helpers for extracting the `X-User-Id` header.
useactix_web::HttpRequest;/// Returns the user identifier supplied by the caller.
pubfnget_x_user_id(req:&HttpRequest)->Option<String>{
req.headers().get("X-User-Id").and_then(|h|h.to_str().ok()).map(|s|s.to_string())}