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

Method SetNillableFileID

ent/metadata_update.go:93–98  ·  view source on GitHub ↗

SetNillableFileID sets the "file_id" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

91
92// SetNillableFileID sets the "file_id" field if the given value is not nil.
93func (mu *MetadataUpdate) SetNillableFileID(i *int) *MetadataUpdate {
94 if i != nil {
95 mu.SetFileID(*i)
96 }
97 return mu
98}
99
100// SetIsPublic sets the "is_public" field.
101func (mu *MetadataUpdate) SetIsPublic(b bool) *MetadataUpdate {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected