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

Method SetNillableStatus

ent/task_create.go:83–88  ·  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

81
82// SetNillableStatus sets the "status" field if the given value is not nil.
83func (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.
91func (tc *TaskCreate) SetPublicState(tps *types.TaskPublicState) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected