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

Method SetNillableDownloads

ent/share_create.go:105–110  ·  view source on GitHub ↗

SetNillableDownloads sets the "downloads" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

103
104// SetNillableDownloads sets the "downloads" field if the given value is not nil.
105func (sc *ShareCreate) SetNillableDownloads(i *int) *ShareCreate {
106 if i != nil {
107 sc.SetDownloads(*i)
108 }
109 return sc
110}
111
112// SetExpires sets the "expires" field.
113func (sc *ShareCreate) SetExpires(t time.Time) *ShareCreate {

Callers

nothing calls this directly

Calls 1

SetDownloadsMethod · 0.95

Tested by

no test coverage detected