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

Method SetNillableUserTasks

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

118
119// SetNillableUserTasks sets the "user_tasks" field if the given value is not nil.
120func (tu *TaskUpdate) SetNillableUserTasks(i *int) *TaskUpdate {
121 if i != nil {
122 tu.SetUserTasks(*i)
123 }
124 return tu
125}
126
127// ClearUserTasks clears the value of the "user_tasks" field.
128func (tu *TaskUpdate) ClearUserTasks() *TaskUpdate {

Callers

nothing calls this directly

Calls 1

SetUserTasksMethod · 0.95

Tested by

no test coverage detected