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

Method UpdateUseCount

pkg/ent/invitecode_create.go:931–935  ·  view source on GitHub ↗

UpdateUseCount sets the "use_count" field to the value that was provided on create.

()

Source from the content-addressed store, hash-verified

929
930// UpdateUseCount sets the "use_count" field to the value that was provided on create.
931func (u *InviteCodeUpsertBulk) UpdateUseCount() *InviteCodeUpsertBulk {
932 return u.Update(func(s *InviteCodeUpsert) {
933 s.UpdateUseCount()
934 })
935}
936
937// SetExpiresAt sets the "expires_at" field.
938func (u *InviteCodeUpsertBulk) SetExpiresAt(v time.Time) *InviteCodeUpsertBulk {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected