(&mut self, msg: impl Into<String>)
| 65 | } |
| 66 | |
| 67 | fn push_error(&mut self, msg: impl Into<String>) { |
| 68 | let fields = self.field_stack.join("."); |
| 69 | |
| 70 | self.errs.push(ValidationError { |
| 71 | field: fields, |
| 72 | msg: msg.into(), |
| 73 | }); |
| 74 | } |
| 75 | |
| 76 | pub fn push_field(&mut self, field: impl Into<String>) { |
| 77 | self.field_stack.push(field.into()); |
no outgoing calls
no test coverage detected