MessageValidationError is the validation error returned by Message.ValidateFields if the designated constraints aren't met.
| 169 | // MessageValidationError is the validation error returned by |
| 170 | // Message.ValidateFields if the designated constraints aren't met. |
| 171 | type MessageValidationError struct { |
| 172 | field string |
| 173 | reason string |
| 174 | cause error |
| 175 | key bool |
| 176 | } |
| 177 | |
| 178 | // Field function returns field value. |
| 179 | func (e MessageValidationError) Field() string { return e.field } |
nothing calls this directly
no outgoing calls
no test coverage detected