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

Method SetNillableServer

ent/storagepolicy_create.go:91–96  ·  view source on GitHub ↗

SetNillableServer sets the "server" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

89
90// SetNillableServer sets the "server" field if the given value is not nil.
91func (spc *StoragePolicyCreate) SetNillableServer(s *string) *StoragePolicyCreate {
92 if s != nil {
93 spc.SetServer(*s)
94 }
95 return spc
96}
97
98// SetBucketName sets the "bucket_name" field.
99func (spc *StoragePolicyCreate) SetBucketName(s string) *StoragePolicyCreate {

Callers

nothing calls this directly

Calls 1

SetServerMethod · 0.95

Tested by

no test coverage detected