Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AnyOfNumberBooleanContainer internalAnyOfNumberBoolean
Functions ¶
func GetTestingServer ¶ added in v0.0.26
GetTestingServer creates and returns a httptest.Server instance for testing purposes.
Types ¶
type AnyOfNumberVehicle ¶ added in v0.0.26
type AnyOfNumberVehicle struct {
// contains filtered or unexported fields
}
AnyOfNumberVehicle represents a AnyOfNumberVehicle struct. This is a container for any-of cases.
func (*AnyOfNumberVehicle) AsNumber ¶ added in v0.0.26
func (s *AnyOfNumberVehicle) AsNumber() ( *int, bool)
func (*AnyOfNumberVehicle) AsVehicle ¶ added in v0.0.26
func (s *AnyOfNumberVehicle) AsVehicle() ( *Vehicle[bool], bool)
func (AnyOfNumberVehicle) MarshalJSON ¶ added in v0.0.26
func (s AnyOfNumberVehicle) MarshalJSON() ( []byte, error)
MarshalJSON implements the json.Marshaller interface for AnyOfNumberVehicle. It customizes the JSON marshaling process for AnyOfNumberVehicle objects.
func (AnyOfNumberVehicle) String ¶ added in v0.0.26
func (s AnyOfNumberVehicle) String() string
String converts the AnyOfNumberVehicle object to a string representation.
func (*AnyOfNumberVehicle) UnmarshalJSON ¶ added in v0.0.26
func (s *AnyOfNumberVehicle) UnmarshalJSON(input []byte) error
UnmarshalJSON implements the json.Unmarshaler interface for AnyOfNumberVehicle. It customizes the JSON unmarshalling process for AnyOfNumberVehicle objects.
type Atom ¶ added in v0.0.26
type Atom struct { NumberOfElectrons int `json:"number_of_electrons"` NumberOfProtons int `json:"number_of_protons"` }
func (*Atom) UnmarshalJSON ¶ added in v0.0.26
type Bike ¶ added in v0.0.26
type Bike struct { Id int `json:"id"` Roof *string `json:"roof"` AirLevel types.Optional[Atom] `json:"air_level"` Type *string `json:"type"` }
func (*Bike) UnmarshalJSON ¶ added in v0.0.26
type Car ¶ added in v0.0.26
func (*Car) UnmarshalJSON ¶ added in v0.0.26
type MonthNameEnum ¶
type MonthNameEnum string
MonthNameEnum is a string enum. An enum representing the months of a year
const ( MonthNameEnum_JANUARY MonthNameEnum = "January" MonthNameEnum_FEBRUARY MonthNameEnum = "February" MonthNameEnum_MARCH MonthNameEnum = "March" )
type MonthNumberEnum ¶
type MonthNumberEnum int
MonthNumberEnum is an int enum. An enum representing the months of a year
const ( MonthNumberEnum_JANUARY MonthNumberEnum = 1 MonthNumberEnum_FEBRUARY MonthNumberEnum = 2 MonthNumberEnum_MARCH MonthNumberEnum = 3 )