...

Source file src/go.formulabun.club/replays/ingest/server/go/model_c_var_entry.go

Documentation: go.formulabun.club/replays/ingest/server/go

     1  /*
     2   * GoBun Replay File Info
     3   *
     4   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
     5   *
     6   * API version: 0.0.1
     7   * Generated by: OpenAPI Generator (https://openapi-generator.tech)
     8   */
     9  
    10  package openapi
    11  
    12  type CVarEntry struct {
    13  
    14  	CVarId int32 `json:"CVarId,omitempty"`
    15  
    16  	Value string `json:"Value,omitempty"`
    17  }
    18  
    19  // AssertCVarEntryRequired checks if the required fields are not zero-ed
    20  func AssertCVarEntryRequired(obj CVarEntry) error {
    21  	return nil
    22  }
    23  
    24  // AssertRecurseCVarEntryRequired recursively checks if required fields are not zero-ed in a nested slice.
    25  // Accepts only nested slice of CVarEntry (e.g. [][]CVarEntry), otherwise ErrTypeAssertionError is thrown.
    26  func AssertRecurseCVarEntryRequired(objSlice interface{}) error {
    27  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    28  		aCVarEntry, ok := obj.(CVarEntry)
    29  		if !ok {
    30  			return ErrTypeAssertionError
    31  		}
    32  		return AssertCVarEntryRequired(aCVarEntry)
    33  	})
    34  }
    35  

View as plain text