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

Method SetNillableCreatedAt

ent/metadata_create.go:33–38  ·  view source on GitHub ↗

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

31
32// SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
33func (mc *MetadataCreate) SetNillableCreatedAt(t *time.Time) *MetadataCreate {
34 if t != nil {
35 mc.SetCreatedAt(*t)
36 }
37 return mc
38}
39
40// SetUpdatedAt sets the "updated_at" field.
41func (mc *MetadataCreate) SetUpdatedAt(t time.Time) *MetadataCreate {

Callers

nothing calls this directly

Calls 1

SetCreatedAtMethod · 0.95

Tested by

no test coverage detected