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

Method SetNillableDeletedAt

ent/setting_create.go:60–65  ·  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

58
59// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
60func (sc *SettingCreate) SetNillableDeletedAt(t *time.Time) *SettingCreate {
61 if t != nil {
62 sc.SetDeletedAt(*t)
63 }
64 return sc
65}
66
67// SetName sets the "name" field.
68func (sc *SettingCreate) SetName(s string) *SettingCreate {

Callers

nothing calls this directly

Calls 1

SetDeletedAtMethod · 0.95

Tested by

no test coverage detected