pub fn with_debug_info(
        stack_entries: impl Into<Vec<String>>,
        detail: impl Into<String>,
    ) -> Self {
        ErrorDetails {
            debug_info: Some(DebugInfo::new(stack_entries, detail)),
            ..ErrorDetails::new()
        }
    }
Generates an [`ErrorDetails`] struct with [`DebugInfo`] details and
remaining fields set to `None`.

# Examples

```
use tonic_types::ErrorDetails;

let err_stack = vec!["...".into(), "...".into()];

let err_details = ErrorDetails::with_debug_info(err_stack, "error details");
```
tonic-types/src/richer_error/error_details/mod.rs