pub fn with_resource_info(
        resource_type: impl Into<String>,
        resource_name: impl Into<String>,
        owner: impl Into<String>,
        description: impl Into<String>,
    ) -> Self {
        ErrorDetails {
            resource_info: Some(ResourceInfo::new(
                resource_type,
                resource_name,
                owner,
                description,
            )),
            ..ErrorDetails::new()
        }
    }
Generates an [`ErrorDetails`] struct with [`ResourceInfo`] details and
remaining fields set to `None`.

# Examples

```
use tonic_types::ErrorDetails;

let err_details = ErrorDetails::with_resource_info(
"res_type",
"res_name",
"owner",
"description",
);
```
tonic-types/src/richer_error/error_details/mod.rs