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

Method SetNillableTimestamp

ent/gitcommit_update.go:468–473  ·  view source on GitHub ↗

SetNillableTimestamp sets the "timestamp" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

466
467// SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
468func (gcuo *GitCommitUpdateOne) SetNillableTimestamp(t *time.Time) *GitCommitUpdateOne {
469 if t != nil {
470 gcuo.SetTimestamp(*t)
471 }
472 return gcuo
473}
474
475// ClearTimestamp clears the value of the "timestamp" field.
476func (gcuo *GitCommitUpdateOne) ClearTimestamp() *GitCommitUpdateOne {

Callers

nothing calls this directly

Calls 1

SetTimestampMethod · 0.95

Tested by

no test coverage detected