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

Method SetNillableType

ent/task_update.go:66–71  ·  view source on GitHub ↗

SetNillableType sets the "type" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

64
65// SetNillableType sets the "type" field if the given value is not nil.
66func (tu *TaskUpdate) SetNillableType(s *string) *TaskUpdate {
67 if s != nil {
68 tu.SetType(*s)
69 }
70 return tu
71}
72
73// SetStatus sets the "status" field.
74func (tu *TaskUpdate) SetStatus(t task.Status) *TaskUpdate {

Callers

nothing calls this directly

Calls 1

SetTypeMethod · 0.95

Tested by

no test coverage detected