gitlab.com/evatix-go/core@v1.3.55/coredata/coreapi/GenericResponseResult.go (about) 1 package coreapi 2 3 import ( 4 "gitlab.com/evatix-go/core/coredata/coredynamic" 5 ) 6 7 type GenericResponseResult struct { 8 Attribute *ResponseAttribute `json:"Attribute,omitempty"` 9 Response *coredynamic.SimpleResult `json:"Response,omitempty"` 10 } 11 12 func (it GenericResponseResult) Clone() GenericResponseResult { 13 return GenericResponseResult{ 14 Attribute: it.Attribute.Clone(), 15 Response: it.Response.ClonePtr(), 16 } 17 } 18 19 func (it *GenericResponseResult) ClonePtr() *GenericResponseResult { 20 if it == nil { 21 return nil 22 } 23 24 return &GenericResponseResult{ 25 Attribute: it.Attribute.Clone(), 26 Response: it.Response.ClonePtr(), 27 } 28 }