gitlab.com/evatix-go/core@v1.3.55/coredata/coreapi/ResponseAttribute.go (about)

     1  package coreapi
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/reqtype"
     5  )
     6  
     7  type ResponseAttribute struct {
     8  	ResponseOfRequestType reqtype.Request
     9  	Count                 int
    10  	HasAnyRecord          bool
    11  	NextPageRequestUrl    string
    12  	StepsPerformed        *[]string `json:"StepsPerformed,omitempty"`
    13  	DebugInfos            *[]string `json:"DebugInfos,omitempty"`
    14  	HttpCode              int
    15  	HttpMethod            reqtype.Request
    16  	IsValid               bool
    17  	Message               string `json:"Message,omitempty"`
    18  }
    19  
    20  func (receiver *ResponseAttribute) Clone() *ResponseAttribute {
    21  	if receiver == nil {
    22  		return nil
    23  	}
    24  
    25  	return &ResponseAttribute{
    26  		ResponseOfRequestType: receiver.ResponseOfRequestType,
    27  		Count:                 receiver.Count,
    28  		HasAnyRecord:          receiver.HasAnyRecord,
    29  		NextPageRequestUrl:    receiver.NextPageRequestUrl,
    30  		StepsPerformed:        receiver.StepsPerformed,
    31  		DebugInfos:            receiver.DebugInfos,
    32  		HttpCode:              receiver.HttpCode,
    33  		HttpMethod:            receiver.HttpMethod,
    34  		IsValid:               receiver.IsValid,
    35  		Message:               receiver.Message,
    36  	}
    37  }