SetNillableStatus sets the "status" field if the given value is not nil.
(t *task.Status)
| 78 | |
| 79 | // SetNillableStatus sets the "status" field if the given value is not nil. |
| 80 | func (tu *TaskUpdate) SetNillableStatus(t *task.Status) *TaskUpdate { |
| 81 | if t != nil { |
| 82 | tu.SetStatus(*t) |
| 83 | } |
| 84 | return tu |
| 85 | } |
| 86 | |
| 87 | // SetPublicState sets the "public_state" field. |
| 88 | func (tu *TaskUpdate) SetPublicState(tps *types.TaskPublicState) *TaskUpdate { |