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

Method Scan

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

Source from the content-addressed store, hash-verified

1163)
1164
1165func (e *BuildReason) Scan(src interface{}) error {
1166 switch s := src.(type) {
1167 case []byte:
1168 *e = BuildReason(s)
1169 case string:
1170 *e = BuildReason(s)
1171 default:
1172 return fmt.Errorf("unsupported scan type for BuildReason: %T", src)
1173 }
1174 return nil
1175}
1176
1177type NullBuildReason struct {
1178 BuildReason BuildReason `json:"build_reason"`

Callers

nothing calls this directly

Calls 2

BuildReasonTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected