MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableStatus

Method SetNillableStatus

ent/task_update.go:80–85  ·  view source on GitHub ↗

SetNillableStatus sets the "status" field if the given value is not nil.

(t *task.Status)

Source from the content-addressed store, hash-verified

78
79// SetNillableStatus sets the "status" field if the given value is not nil.
80func (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.
88func (tu *TaskUpdate) SetPublicState(tps *types.TaskPublicState) *TaskUpdate {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected