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

Method SetNillableType

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

334
335// SetNillableType sets the "type" field if the given value is not nil.
336func (tuo *TaskUpdateOne) SetNillableType(s *string) *TaskUpdateOne {
337 if s != nil {
338 tuo.SetType(*s)
339 }
340 return tuo
341}
342
343// SetStatus sets the "status" field.
344func (tuo *TaskUpdateOne) SetStatus(t task.Status) *TaskUpdateOne {

Callers

nothing calls this directly

Calls 1

SetTypeMethod · 0.95

Tested by

no test coverage detected