(src interface{})
| 1428 | ) |
| 1429 | |
| 1430 | func (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 | |
| 1442 | type NullChatMode struct { |
| 1443 | ChatMode ChatMode `json:"chat_mode"` |