pub fn with_localized_message(locale: impl Into<String>, message: impl Into<String>) -> Self {
        ErrorDetails {
            localized_message: Some(LocalizedMessage::new(locale, message)),
            ..ErrorDetails::new()
        }
    }
Generates an [`ErrorDetails`] struct with [`LocalizedMessage`] details
and remaining fields set to `None`.

# Examples

```
use tonic_types::ErrorDetails;

let err_details = ErrorDetails::with_localized_message(
"en-US",
"message for the user"
);
```
tonic-types/src/richer_error/error_details/mod.rs