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

Method SetNillableDeletedAt

ent/node_update.go:414–419  ·  view source on GitHub ↗

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

412
413// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
414func (nuo *NodeUpdateOne) SetNillableDeletedAt(t *time.Time) *NodeUpdateOne {
415 if t != nil {
416 nuo.SetDeletedAt(*t)
417 }
418 return nuo
419}
420
421// ClearDeletedAt clears the value of the "deleted_at" field.
422func (nuo *NodeUpdateOne) ClearDeletedAt() *NodeUpdateOne {

Callers

nothing calls this directly

Calls 1

SetDeletedAtMethod · 0.95

Tested by

no test coverage detected