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

Method SetType

ent/mutation.go:7444–7446  ·  view source on GitHub ↗

SetType sets the "type" field.

(n node.Type)

Source from the content-addressed store, hash-verified

7442
7443// SetType sets the "type" field.
7444func (m *NodeMutation) SetType(n node.Type) {
7445 m._type = &n
7446}
7447
7448// GetType returns the value of the "type" field in the mutation.
7449func (m *NodeMutation) GetType() (r node.Type, exists bool) {

Callers 1

SetFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected