// A handy function to create a `Response` using parameters from the `Request`
A handy function to create a `Response` using parameters from the `Request`
A handy function to create a ` Response ` using parameters from the ` Request `
fn generate_response(request: Request, payload: Payload) -> Response {
    Response {
        originator: request.sender,
        respondent: request.receiver,
        originator_reply_callback: request.sender_reply_callback,
        response_payload: payload,
        refund: Cycles::zero(),
    }
}
fn generate_response ( request : Request , payload : Payload ) -> Response { Response { originator : request . sender , respondent : request . receiver , originator_reply_callback : request . sender_reply_callback , response_payload : payload , refund : Cycles :: zero ( ) , } }
A handy function to create a `Response` using parameters from the `Request`
A handy function to create a ` Response ` using parameters from the ` Request `
request
Request
payload
Payload