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

Method SetNillableReferenceCount

ent/entity_create.go:97–102  ·  view source on GitHub ↗

SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

95
96// SetNillableReferenceCount sets the "reference_count" field if the given value is not nil.
97func (ec *EntityCreate) SetNillableReferenceCount(i *int) *EntityCreate {
98 if i != nil {
99 ec.SetReferenceCount(*i)
100 }
101 return ec
102}
103
104// SetStoragePolicyEntities sets the "storage_policy_entities" field.
105func (ec *EntityCreate) SetStoragePolicyEntities(i int) *EntityCreate {

Callers

nothing calls this directly

Calls 1

SetReferenceCountMethod · 0.95

Tested by

no test coverage detected