(src interface{})
| 1800 | ) |
| 1801 | |
| 1802 | func (e *CredentialKind) Scan(src interface{}) error { |
| 1803 | switch s := src.(type) { |
| 1804 | case []byte: |
| 1805 | *e = CredentialKind(s) |
| 1806 | case string: |
| 1807 | *e = CredentialKind(s) |
| 1808 | default: |
| 1809 | return fmt.Errorf("unsupported scan type for CredentialKind: %T", src) |
| 1810 | } |
| 1811 | return nil |
| 1812 | } |
| 1813 | |
| 1814 | type NullCredentialKind struct { |
| 1815 | CredentialKind CredentialKind `json:"credential_kind"` |
nothing calls this directly
no test coverage detected