pub fn set_bad_request(&mut self, violations: impl Into<Vec<FieldViolation>>) -> &mut Self {
        self.bad_request = Some(BadRequest::new(violations));
        self
    }
Set [`BadRequest`] details. Can be chained with other `.set_` and
`.add_` [`ErrorDetails`] methods.

# Examples

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

let mut err_details = ErrorDetails::new();

err_details.set_bad_request(vec![
FieldViolation::new("field_1", "description 1"),
FieldViolation::new("field_2", "description 2"),
]);
```
tonic-types/src/richer_error/error_details/mod.rs