HasChanges reports whether the patch includes any mutable task field.
()
| 731 | |
| 732 | // HasChanges reports whether the patch includes any mutable task field. |
| 733 | func (r UpdateTaskRequest) HasChanges() bool { |
| 734 | return r.Title != nil || |
| 735 | r.Description != nil || |
| 736 | r.Priority != nil || |
| 737 | r.MaxAttempts != nil || |
| 738 | r.AutoEnqueueOnReady != nil || |
| 739 | r.ApprovalPolicy != nil || |
| 740 | r.Metadata != nil || |
| 741 | r.NetworkChannel != nil || |
| 742 | r.Owner != nil || |
| 743 | r.ClearOwner |
| 744 | } |
| 745 | |
| 746 | // CancelTaskRequest is the shared task-cancel request payload. |
| 747 | type CancelTaskRequest struct { |
no outgoing calls