enum_value

package
v1.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumValueSliceToJSON

func EnumValueSliceToJSON(e []EnumValue) json.RawMessage

func EnumValueToJSON

func EnumValueToJSON(e EnumValue) json.RawMessage

Types

type EnumValue

type EnumValue struct {
	Identifier   string `json:"identifier"`
	Display      string `json:"display"`
	NumericValue int64  `json:"numeric_value"`
}

func EnumValueFromJSON

func EnumValueFromJSON(data json.RawMessage) EnumValue

func EnumValueSliceFromJSON

func EnumValueSliceFromJSON(data json.RawMessage) []EnumValue

func NewEnumValueSliceWithRandomValues

func NewEnumValueSliceWithRandomValues(n int) []EnumValue

func NewEnumValueWithRandomValues

func NewEnumValueWithRandomValues() EnumValue

func (EnumValue) ArrayFieldIdentifierToType

func (e EnumValue) ArrayFieldIdentifierToType() map[string]types.FieldType

func (EnumValue) EntityIdentifier

func (e EnumValue) EntityIdentifier() string

func (EnumValue) FieldIdentfierToTypeMap

func (e EnumValue) FieldIdentfierToTypeMap() map[string]types.FieldType

func (EnumValue) IsDependant

func (e EnumValue) IsDependant() bool

func (EnumValue) OrderedFieldIdentifiers added in v1.0.35

func (e EnumValue) OrderedFieldIdentifiers() []string

func (EnumValue) String

func (e EnumValue) String() string

func (EnumValue) ToJSON

func (e EnumValue) ToJSON() json.RawMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL