github.com/aeternity/aepp-sdk-go/v4@v4.0.1/swagguard/node/models/inline_response2002.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package models
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	strfmt "github.com/go-openapi/strfmt"
    10  
    11  	"github.com/go-openapi/swag"
    12  )
    13  
    14  // InlineResponse2002 inline response 200 2
    15  // swagger:model inline_response_200_2
    16  type InlineResponse2002 struct {
    17  
    18  	// Count
    19  	Count uint32 `json:"count,omitempty"`
    20  }
    21  
    22  // Validate validates this inline response 200 2
    23  func (m *InlineResponse2002) Validate(formats strfmt.Registry) error {
    24  	return nil
    25  }
    26  
    27  // MarshalBinary interface implementation
    28  func (m *InlineResponse2002) MarshalBinary() ([]byte, error) {
    29  	if m == nil {
    30  		return nil, nil
    31  	}
    32  	return swag.WriteJSON(m)
    33  }
    34  
    35  // UnmarshalBinary interface implementation
    36  func (m *InlineResponse2002) UnmarshalBinary(b []byte) error {
    37  	var res InlineResponse2002
    38  	if err := swag.ReadJSON(b, &res); err != nil {
    39  		return err
    40  	}
    41  	*m = res
    42  	return nil
    43  }