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

Method Scan

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

Source from the content-addressed store, hash-verified

1485)
1486
1487func (e *ChatPlanMode) Scan(src interface{}) error {
1488 switch s := src.(type) {
1489 case []byte:
1490 *e = ChatPlanMode(s)
1491 case string:
1492 *e = ChatPlanMode(s)
1493 default:
1494 return fmt.Errorf("unsupported scan type for ChatPlanMode: %T", src)
1495 }
1496 return nil
1497}
1498
1499type NullChatPlanMode struct {
1500 ChatPlanMode ChatPlanMode `json:"chat_plan_mode"`

Callers

nothing calls this directly

Calls 2

ChatPlanModeTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected