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

Method SetNillablePrivateState

ent/task_update.go:370–375  ·  view source on GitHub ↗

SetNillablePrivateState sets the "private_state" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

368
369// SetNillablePrivateState sets the "private_state" field if the given value is not nil.
370func (tuo *TaskUpdateOne) SetNillablePrivateState(s *string) *TaskUpdateOne {
371 if s != nil {
372 tuo.SetPrivateState(*s)
373 }
374 return tuo
375}
376
377// ClearPrivateState clears the value of the "private_state" field.
378func (tuo *TaskUpdateOne) ClearPrivateState() *TaskUpdateOne {

Callers

nothing calls this directly

Calls 1

SetPrivateStateMethod · 0.95

Tested by

no test coverage detected