MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SetNillableCreateTime

Method SetNillableCreateTime

ent/node_create.go:38–43  ·  view source on GitHub ↗

SetNillableCreateTime sets the "create_time" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

36
37// SetNillableCreateTime sets the "create_time" field if the given value is not nil.
38func (nc *NodeCreate) SetNillableCreateTime(t *time.Time) *NodeCreate {
39 if t != nil {
40 nc.SetCreateTime(*t)
41 }
42 return nc
43}
44
45// SetUpdateTime sets the "update_time" field.
46func (nc *NodeCreate) SetUpdateTime(t time.Time) *NodeCreate {

Callers

nothing calls this directly

Calls 1

SetCreateTimeMethod · 0.95

Tested by

no test coverage detected