pub fn has_quota_failure_violations(&self) -> bool {
        if let Some(quota_failure) = &self.quota_failure {
            return !quota_failure.violations.is_empty();
        }
        false
    }
Returns `true` if [`QuotaFailure`] is set and its `violations` vector
is not empty, otherwise returns `false`.

# Examples

```
use tonic_types::ErrorDetails;

let mut err_details = ErrorDetails::with_quota_failure(vec![]);

assert_eq!(err_details.has_quota_failure_violations(), false);

err_details.add_quota_failure_violation("subject", "description");

assert_eq!(err_details.has_quota_failure_violations(), true);
```
tonic-types/src/richer_error/error_details/mod.rs