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

Method SetNillableDeletedAt

ent/task_create.go:63–68  ·  view source on GitHub ↗

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

61
62// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
63func (tc *TaskCreate) SetNillableDeletedAt(t *time.Time) *TaskCreate {
64 if t != nil {
65 tc.SetDeletedAt(*t)
66 }
67 return tc
68}
69
70// SetType sets the "type" field.
71func (tc *TaskCreate) SetType(s string) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetDeletedAtMethod · 0.95

Tested by

no test coverage detected