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

Method SetNillableValue

ent/metadata_update.go:306–311  ·  view source on GitHub ↗

SetNillableValue sets the "value" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

304
305// SetNillableValue sets the "value" field if the given value is not nil.
306func (muo *MetadataUpdateOne) SetNillableValue(s *string) *MetadataUpdateOne {
307 if s != nil {
308 muo.SetValue(*s)
309 }
310 return muo
311}
312
313// SetFileID sets the "file_id" field.
314func (muo *MetadataUpdateOne) SetFileID(i int) *MetadataUpdateOne {

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.95

Tested by

no test coverage detected