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

Method SetNillableStatus

ent/task_update.go:350–355  ·  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

348
349// SetNillableStatus sets the "status" field if the given value is not nil.
350func (tuo *TaskUpdateOne) SetNillableStatus(t *task.Status) *TaskUpdateOne {
351 if t != nil {
352 tuo.SetStatus(*t)
353 }
354 return tuo
355}
356
357// SetPublicState sets the "public_state" field.
358func (tuo *TaskUpdateOne) SetPublicState(tps *types.TaskPublicState) *TaskUpdateOne {

Callers

nothing calls this directly

Calls 1

SetStatusMethod · 0.95

Tested by

no test coverage detected