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

Method SetNillablePassword

ent/share_update.go:446–451  ·  view source on GitHub ↗

SetNillablePassword sets the "password" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

444
445// SetNillablePassword sets the "password" field if the given value is not nil.
446func (suo *ShareUpdateOne) SetNillablePassword(s *string) *ShareUpdateOne {
447 if s != nil {
448 suo.SetPassword(*s)
449 }
450 return suo
451}
452
453// ClearPassword clears the value of the "password" field.
454func (suo *ShareUpdateOne) ClearPassword() *ShareUpdateOne {

Callers

nothing calls this directly

Calls 1

SetPasswordMethod · 0.95

Tested by

no test coverage detected