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

Method SetNillableUpdatedAt

ent/metadata_create.go:47–52  ·  view source on GitHub ↗

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

45
46// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
47func (mc *MetadataCreate) SetNillableUpdatedAt(t *time.Time) *MetadataCreate {
48 if t != nil {
49 mc.SetUpdatedAt(*t)
50 }
51 return mc
52}
53
54// SetDeletedAt sets the "deleted_at" field.
55func (mc *MetadataCreate) SetDeletedAt(t time.Time) *MetadataCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected