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

Method SetNillablePassword

ent/share_create.go:77–82  ·  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

75
76// SetNillablePassword sets the "password" field if the given value is not nil.
77func (sc *ShareCreate) SetNillablePassword(s *string) *ShareCreate {
78 if s != nil {
79 sc.SetPassword(*s)
80 }
81 return sc
82}
83
84// SetViews sets the "views" field.
85func (sc *ShareCreate) SetViews(i int) *ShareCreate {

Callers

nothing calls this directly

Calls 1

SetPasswordMethod · 0.95

Tested by

no test coverage detected