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

Method SetNillableSource

ent/entity_update.go:569–574  ·  view source on GitHub ↗

SetNillableSource sets the "source" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

567
568// SetNillableSource sets the "source" field if the given value is not nil.
569func (euo *EntityUpdateOne) SetNillableSource(s *string) *EntityUpdateOne {
570 if s != nil {
571 euo.SetSource(*s)
572 }
573 return euo
574}
575
576// SetSize sets the "size" field.
577func (euo *EntityUpdateOne) SetSize(i int64) *EntityUpdateOne {

Callers

nothing calls this directly

Calls 1

SetSourceMethod · 0.95

Tested by

no test coverage detected