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

Method SetNillableUpdatedAt

ent/node_create.go:49–54  ·  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

47
48// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
49func (nc *NodeCreate) SetNillableUpdatedAt(t *time.Time) *NodeCreate {
50 if t != nil {
51 nc.SetUpdatedAt(*t)
52 }
53 return nc
54}
55
56// SetDeletedAt sets the "deleted_at" field.
57func (nc *NodeCreate) SetDeletedAt(t time.Time) *NodeCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected