...

Source file src/go.formulabun.club/replays/ingest/server/go/model_wad_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 WadEntry struct {
    13  
    14  	FileName string `json:"FileName,omitempty"`
    15  
    16  	WadMd5 []int32 `json:"WadMd5,omitempty"`
    17  }
    18  
    19  // AssertWadEntryRequired checks if the required fields are not zero-ed
    20  func AssertWadEntryRequired(obj WadEntry) error {
    21  	return nil
    22  }
    23  
    24  // AssertRecurseWadEntryRequired recursively checks if required fields are not zero-ed in a nested slice.
    25  // Accepts only nested slice of WadEntry (e.g. [][]WadEntry), otherwise ErrTypeAssertionError is thrown.
    26  func AssertRecurseWadEntryRequired(objSlice interface{}) error {
    27  	return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
    28  		aWadEntry, ok := obj.(WadEntry)
    29  		if !ok {
    30  			return ErrTypeAssertionError
    31  		}
    32  		return AssertWadEntryRequired(aWadEntry)
    33  	})
    34  }
    35  

View as plain text