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

Method SetNillableCreatedAt

ent/setting_create.go:32–37  ·  view source on GitHub ↗

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

30
31// SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
32func (sc *SettingCreate) SetNillableCreatedAt(t *time.Time) *SettingCreate {
33 if t != nil {
34 sc.SetCreatedAt(*t)
35 }
36 return sc
37}
38
39// SetUpdatedAt sets the "updated_at" field.
40func (sc *SettingCreate) SetUpdatedAt(t time.Time) *SettingCreate {

Callers

nothing calls this directly

Calls 1

SetCreatedAtMethod · 0.95

Tested by

no test coverage detected