MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/scion / SetUseCount

Method SetUseCount

pkg/ent/invitecode_create.go:917–921  ·  view source on GitHub ↗

SetUseCount sets the "use_count" field.

(v int)

Source from the content-addressed store, hash-verified

915
916// SetUseCount sets the "use_count" field.
917func (u *InviteCodeUpsertBulk) SetUseCount(v int) *InviteCodeUpsertBulk {
918 return u.Update(func(s *InviteCodeUpsert) {
919 s.SetUseCount(v)
920 })
921}
922
923// AddUseCount adds v to the "use_count" field.
924func (u *InviteCodeUpsertBulk) AddUseCount(v int) *InviteCodeUpsertBulk {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected