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

Method Scan

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

Source from the content-addressed store, hash-verified

1546)
1547
1548func (e *ChatStatus) Scan(src interface{}) error {
1549 switch s := src.(type) {
1550 case []byte:
1551 *e = ChatStatus(s)
1552 case string:
1553 *e = ChatStatus(s)
1554 default:
1555 return fmt.Errorf("unsupported scan type for ChatStatus: %T", src)
1556 }
1557 return nil
1558}
1559
1560type NullChatStatus struct {
1561 ChatStatus ChatStatus `json:"chat_status"`

Callers

nothing calls this directly

Calls 2

ChatStatusTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected