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

Method SetNillableDeletedAt

ent/node_update.go:47–52  ·  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

45
46// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
47func (nu *NodeUpdate) SetNillableDeletedAt(t *time.Time) *NodeUpdate {
48 if t != nil {
49 nu.SetDeletedAt(*t)
50 }
51 return nu
52}
53
54// ClearDeletedAt clears the value of the "deleted_at" field.
55func (nu *NodeUpdate) ClearDeletedAt() *NodeUpdate {

Callers

nothing calls this directly

Calls 1

SetDeletedAtMethod · 0.95

Tested by

no test coverage detected