pub fn with_retry_info(retry_delay: Option<time::Duration>) -> Self {
        ErrorDetails {
            retry_info: Some(RetryInfo::new(retry_delay)),
            ..ErrorDetails::new()
        }
    }
Generates an [`ErrorDetails`] struct with [`RetryInfo`] details and
remaining fields set to `None`.

# Examples

```
use std::time::Duration;
use tonic_types::ErrorDetails;

let err_details = ErrorDetails::with_retry_info(Some(Duration::from_secs(5)));
```
tonic-types/src/richer_error/error_details/mod.rs