func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOKBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateResult(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this get distribution delegators delegator addr rewards validator addr o k body
package distribution
import (
	"fmt"
	"io"
	"strconv"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/terra-project/mantle-sdk/lcd/models"
)
type GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrReader struct {
	formats strfmt.Registry
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewGetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewGetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewGetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewGetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK() *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK {
	return &GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK{}
}
type GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK struct {
	Payload *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOKBody
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK) Error() string {
	return fmt.Sprintf("[GET /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] getDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK  %+v", 200, o.Payload)
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK) GetPayload() *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOKBody {
	return o.Payload
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewGetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest() *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest {
	return &GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest{}
}
type GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest struct {
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest) Error() string {
	return fmt.Sprintf("[GET /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] getDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest ", 400)
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewGetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError() *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError {
	return &GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError{}
}
type GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError struct {
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError) Error() string {
	return fmt.Sprintf("[GET /distribution/delegators/{delegatorAddr}/rewards/{validatorAddr}][%d] getDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError ", 500)
}
func (o *GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type GetDistributionDelegatorsDelegatorAddrRewardsValidatorAddrOKBody struct {
	Height string `json:"height,omitempty"`
	Result []*models.Coin `json:"result"`
}