MCPcopy Index your code
hub / github.com/coder/coder / Scan

Method Scan

coderd/database/models.go:3467–3477  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

3465)
3466
3467func (e *ShareableWorkspaceOwners) Scan(src interface{}) error {
3468 switch s := src.(type) {
3469 case []byte:
3470 *e = ShareableWorkspaceOwners(s)
3471 case string:
3472 *e = ShareableWorkspaceOwners(s)
3473 default:
3474 return fmt.Errorf("unsupported scan type for ShareableWorkspaceOwners: %T", src)
3475 }
3476 return nil
3477}
3478
3479type NullShareableWorkspaceOwners struct {
3480 ShareableWorkspaceOwners ShareableWorkspaceOwners `json:"shareable_workspace_owners"`

Callers

nothing calls this directly

Calls 2

ShareableWorkspaceOwnersTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected