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