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

Method SetNillableCorrelationID

ent/task_create.go:117–122  ·  view source on GitHub ↗

SetNillableCorrelationID sets the "correlation_id" field if the given value is not nil.

(u *uuid.UUID)

Source from the content-addressed store, hash-verified

115
116// SetNillableCorrelationID sets the "correlation_id" field if the given value is not nil.
117func (tc *TaskCreate) SetNillableCorrelationID(u *uuid.UUID) *TaskCreate {
118 if u != nil {
119 tc.SetCorrelationID(*u)
120 }
121 return tc
122}
123
124// SetUserTasks sets the "user_tasks" field.
125func (tc *TaskCreate) SetUserTasks(i int) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetCorrelationIDMethod · 0.95

Tested by

no test coverage detected