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

Method SetType

ent/node_create.go:657–661  ·  view source on GitHub ↗

SetType sets the "type" field.

(v node.Type)

Source from the content-addressed store, hash-verified

655
656// SetType sets the "type" field.
657func (u *NodeUpsertOne) SetType(v node.Type) *NodeUpsertOne {
658 return u.Update(func(s *NodeUpsert) {
659 s.SetType(v)
660 })
661}
662
663// UpdateType sets the "type" field to the value that was provided on create.
664func (u *NodeUpsertOne) UpdateType() *NodeUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected