MCPcopy Create free account
hub / github.com/coder/coder / Scan

Method Scan

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

Source from the content-addressed store, hash-verified

1305)
1306
1307func (e *ChatMessageRole) Scan(src interface{}) error {
1308 switch s := src.(type) {
1309 case []byte:
1310 *e = ChatMessageRole(s)
1311 case string:
1312 *e = ChatMessageRole(s)
1313 default:
1314 return fmt.Errorf("unsupported scan type for ChatMessageRole: %T", src)
1315 }
1316 return nil
1317}
1318
1319type NullChatMessageRole struct {
1320 ChatMessageRole ChatMessageRole `json:"chat_message_role"`

Callers

nothing calls this directly

Calls 2

ChatMessageRoleTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected