(src interface{})
| 31 | ) |
| 32 | |
| 33 | func (e *AIProviderType) Scan(src interface{}) error { |
| 34 | switch s := src.(type) { |
| 35 | case []byte: |
| 36 | *e = AIProviderType(s) |
| 37 | case string: |
| 38 | *e = AIProviderType(s) |
| 39 | default: |
| 40 | return fmt.Errorf("unsupported scan type for AIProviderType: %T", src) |
| 41 | } |
| 42 | return nil |
| 43 | } |
| 44 | |
| 45 | type NullAIProviderType struct { |
| 46 | AIProviderType AIProviderType `json:"ai_provider_type"` |
nothing calls this directly
no test coverage detected