pub fn with_request_info(
        request_id: impl Into<String>,
        serving_data: impl Into<String>,
    ) -> Self {
        ErrorDetails {
            request_info: Some(RequestInfo::new(request_id, serving_data)),
            ..ErrorDetails::new()
        }
    }
Generates an [`ErrorDetails`] struct with [`RequestInfo`] details and
remaining fields set to `None`.

# Examples

```
use tonic_types::ErrorDetails;

let err_details = ErrorDetails::with_request_info(
"request_id",
"serving_data",
);
```
tonic-types/src/richer_error/error_details/mod.rs