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

Method SetNillableUpdatedAt

ent/setting_create.go:46–51  ·  view source on GitHub ↗

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

44
45// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
46func (sc *SettingCreate) SetNillableUpdatedAt(t *time.Time) *SettingCreate {
47 if t != nil {
48 sc.SetUpdatedAt(*t)
49 }
50 return sc
51}
52
53// SetDeletedAt sets the "deleted_at" field.
54func (sc *SettingCreate) SetDeletedAt(t time.Time) *SettingCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected