MessageCleared returns if the "message" field was cleared in this mutation.
()
| 394 | |
| 395 | // MessageCleared returns if the "message" field was cleared in this mutation. |
| 396 | func (m *AlertMutation) MessageCleared() bool { |
| 397 | _, ok := m.clearedFields[alert.FieldMessage] |
| 398 | return ok |
| 399 | } |
| 400 | |
| 401 | // ResetMessage resets all changes to the "message" field. |
| 402 | func (m *AlertMutation) ResetMessage() { |