(src interface{})
| 1546 | ) |
| 1547 | |
| 1548 | func (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 | |
| 1560 | type NullChatStatus struct { |
| 1561 | ChatStatus ChatStatus `json:"chat_status"` |
nothing calls this directly
no test coverage detected