MCPcopy Index your code
hub / github.com/coder/coder / Scan

Method Scan

coderd/database/models.go:3715–3725  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

3713)
3714
3715func (e *UserStatus) Scan(src interface{}) error {
3716 switch s := src.(type) {
3717 case []byte:
3718 *e = UserStatus(s)
3719 case string:
3720 *e = UserStatus(s)
3721 default:
3722 return fmt.Errorf("unsupported scan type for UserStatus: %T", src)
3723 }
3724 return nil
3725}
3726
3727type NullUserStatus struct {
3728 UserStatus UserStatus `json:"user_status"`

Callers

nothing calls this directly

Calls 2

UserStatusTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected