pub fn add_bad_request_violation(
        &mut self,
        field: impl Into<String>,
        description: impl Into<String>,
    ) -> &mut Self {
        match &mut self.bad_request {
            Some(bad_request) => {
                bad_request.add_violation(field, description);
            }
            None => {
                self.bad_request = Some(BadRequest::with_violation(field, description));
            }
        };
        self
    }
Adds a [`FieldViolation`] to [`BadRequest`] details. Sets
[`BadRequest`] details if it is not set yet. Can be chained with other
`.set_` and `.add_` [`ErrorDetails`] methods.

# Examples

```
use tonic_types::ErrorDetails;

let mut err_details = ErrorDetails::new();

err_details.add_bad_request_violation("field", "description");
```
tonic-types/src/richer_error/error_details/mod.rs