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

Method SetType

ent/node_create.go:453–456  ·  view source on GitHub ↗

SetType sets the "type" field.

(v node.Type)

Source from the content-addressed store, hash-verified

451
452// SetType sets the "type" field.
453func (u *NodeUpsert) SetType(v node.Type) *NodeUpsert {
454 u.Set(node.FieldType, v)
455 return u
456}
457
458// UpdateType sets the "type" field to the value that was provided on create.
459func (u *NodeUpsert) UpdateType() *NodeUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected