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

Method SetNillableDeletedAt

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

61
62// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.
63func (nc *NodeCreate) SetNillableDeletedAt(t *time.Time) *NodeCreate {
64 if t != nil {
65 nc.SetDeletedAt(*t)
66 }
67 return nc
68}
69
70// SetStatus sets the "status" field.
71func (nc *NodeCreate) SetStatus(n node.Status) *NodeCreate {

Callers 1

UpsertMetadataMethod · 0.45

Calls 1

SetDeletedAtMethod · 0.95

Tested by

no test coverage detected