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

Method Scan

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

Source from the content-addressed store, hash-verified

939)
940
941func (e *AppSharingLevel) Scan(src interface{}) error {
942 switch s := src.(type) {
943 case []byte:
944 *e = AppSharingLevel(s)
945 case string:
946 *e = AppSharingLevel(s)
947 default:
948 return fmt.Errorf("unsupported scan type for AppSharingLevel: %T", src)
949 }
950 return nil
951}
952
953type NullAppSharingLevel struct {
954 AppSharingLevel AppSharingLevel `json:"app_sharing_level"`

Callers

nothing calls this directly

Calls 2

AppSharingLevelTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected