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

Method SetNillableExpires

ent/share_create.go:119–124  ·  view source on GitHub ↗

SetNillableExpires sets the "expires" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

117
118// SetNillableExpires sets the "expires" field if the given value is not nil.
119func (sc *ShareCreate) SetNillableExpires(t *time.Time) *ShareCreate {
120 if t != nil {
121 sc.SetExpires(*t)
122 }
123 return sc
124}
125
126// SetRemainDownloads sets the "remain_downloads" field.
127func (sc *ShareCreate) SetRemainDownloads(i int) *ShareCreate {

Callers

nothing calls this directly

Calls 1

SetExpiresMethod · 0.95

Tested by

no test coverage detected