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

Method SetNillablePrivateState

ent/task_create.go:103–108  ·  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

101
102// SetNillablePrivateState sets the "private_state" field if the given value is not nil.
103func (tc *TaskCreate) SetNillablePrivateState(s *string) *TaskCreate {
104 if s != nil {
105 tc.SetPrivateState(*s)
106 }
107 return tc
108}
109
110// SetCorrelationID sets the "correlation_id" field.
111func (tc *TaskCreate) SetCorrelationID(u uuid.UUID) *TaskCreate {

Callers

nothing calls this directly

Calls 1

SetPrivateStateMethod · 0.95

Tested by

no test coverage detected