Define structs for the return type as well as the in-parameters.