SourceRangeCleared returns if the "sourceRange" field was cleared in this mutation.
()
| 660 | |
| 661 | // SourceRangeCleared returns if the "sourceRange" field was cleared in this mutation. |
| 662 | func (m *AlertMutation) SourceRangeCleared() bool { |
| 663 | _, ok := m.clearedFields[alert.FieldSourceRange] |
| 664 | return ok |
| 665 | } |
| 666 | |
| 667 | // ResetSourceRange resets all changes to the "sourceRange" field. |
| 668 | func (m *AlertMutation) ResetSourceRange() { |