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

Method SetFileNameRule

ent/storagepolicy_update.go:922–925  ·  view source on GitHub ↗

SetFileNameRule sets the "file_name_rule" field.

(s string)

Source from the content-addressed store, hash-verified

920
921// SetFileNameRule sets the "file_name_rule" field.
922func (spuo *StoragePolicyUpdateOne) SetFileNameRule(s string) *StoragePolicyUpdateOne {
923 spuo.mutation.SetFileNameRule(s)
924 return spuo
925}
926
927// SetNillableFileNameRule sets the "file_name_rule" field if the given value is not nil.
928func (spuo *StoragePolicyUpdateOne) SetNillableFileNameRule(s *string) *StoragePolicyUpdateOne {

Callers 1

Calls 1

SetFileNameRuleMethod · 0.45

Tested by

no test coverage detected