pub fn with_quota_failure(violations: impl Into<Vec<QuotaViolation>>) -> Self {
        ErrorDetails {
            quota_failure: Some(QuotaFailure::new(violations)),
            ..ErrorDetails::new()
        }
    }
Generates an [`ErrorDetails`] struct with [`QuotaFailure`] details and
remaining fields set to `None`.

# Examples

```
use tonic_types::{ErrorDetails, QuotaViolation};

let err_details = ErrorDetails::with_quota_failure(vec![
QuotaViolation::new("subject 1", "description 1"),
QuotaViolation::new("subject 2", "description 2"),
]);
```
tonic-types/src/richer_error/error_details/mod.rs