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

Method SetType

ent/node_create.go:1048–1052  ·  view source on GitHub ↗

SetType sets the "type" field.

(v node.Type)

Source from the content-addressed store, hash-verified

1046
1047// SetType sets the "type" field.
1048func (u *NodeUpsertBulk) SetType(v node.Type) *NodeUpsertBulk {
1049 return u.Update(func(s *NodeUpsert) {
1050 s.SetType(v)
1051 })
1052}
1053
1054// UpdateType sets the "type" field to the value that was provided on create.
1055func (u *NodeUpsertBulk) UpdateType() *NodeUpsertBulk {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected