How to pass data from request to response without copying in actix-web

The web server is trying to deserialize non-static data (the request) and obtain an User<'static>. This is not possible. Give up on using &str in this manner. It's not going to work.