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

Method Scan

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

Source from the content-addressed store, hash-verified

1428)
1429
1430func (e *ChatMode) Scan(src interface{}) error {
1431 switch s := src.(type) {
1432 case []byte:
1433 *e = ChatMode(s)
1434 case string:
1435 *e = ChatMode(s)
1436 default:
1437 return fmt.Errorf("unsupported scan type for ChatMode: %T", src)
1438 }
1439 return nil
1440}
1441
1442type NullChatMode struct {
1443 ChatMode ChatMode `json:"chat_mode"`

Callers 15

ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45
ScanMethod · 0.45

Calls 2

ChatModeTypeAlias · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected