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

Method SetNillableFileID

ent/metadata_update.go:320–325  ·  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

318
319// SetNillableFileID sets the "file_id" field if the given value is not nil.
320func (muo *MetadataUpdateOne) SetNillableFileID(i *int) *MetadataUpdateOne {
321 if i != nil {
322 muo.SetFileID(*i)
323 }
324 return muo
325}
326
327// SetIsPublic sets the "is_public" field.
328func (muo *MetadataUpdateOne) SetIsPublic(b bool) *MetadataUpdateOne {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected