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

Method SetNillableUserTasks

ent/task_update.go:390–395  ·  view source on GitHub ↗

SetNillableUserTasks sets the "user_tasks" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

388
389// SetNillableUserTasks sets the "user_tasks" field if the given value is not nil.
390func (tuo *TaskUpdateOne) SetNillableUserTasks(i *int) *TaskUpdateOne {
391 if i != nil {
392 tuo.SetUserTasks(*i)
393 }
394 return tuo
395}
396
397// ClearUserTasks clears the value of the "user_tasks" field.
398func (tuo *TaskUpdateOne) ClearUserTasks() *TaskUpdateOne {

Callers

nothing calls this directly

Calls 1

SetUserTasksMethod · 0.95

Tested by

no test coverage detected