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

Method SetFileNameRule

ent/storagepolicy_create.go:183–186  ·  view source on GitHub ↗

SetFileNameRule sets the "file_name_rule" field.

(s string)

Source from the content-addressed store, hash-verified

181
182// SetFileNameRule sets the "file_name_rule" field.
183func (spc *StoragePolicyCreate) SetFileNameRule(s string) *StoragePolicyCreate {
184 spc.mutation.SetFileNameRule(s)
185 return spc
186}
187
188// SetNillableFileNameRule sets the "file_name_rule" field if the given value is not nil.
189func (spc *StoragePolicyCreate) SetNillableFileNameRule(s *string) *StoragePolicyCreate {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected