(src interface{})
| 1013 | ) |
| 1014 | |
| 1015 | func (e *AuditAction) Scan(src interface{}) error { |
| 1016 | switch s := src.(type) { |
| 1017 | case []byte: |
| 1018 | *e = AuditAction(s) |
| 1019 | case string: |
| 1020 | *e = AuditAction(s) |
| 1021 | default: |
| 1022 | return fmt.Errorf("unsupported scan type for AuditAction: %T", src) |
| 1023 | } |
| 1024 | return nil |
| 1025 | } |
| 1026 | |
| 1027 | type NullAuditAction struct { |
| 1028 | AuditAction AuditAction `json:"audit_action"` |
nothing calls this directly
no test coverage detected