[Snippet rust]
```rust
fn generate_response(
```
Path: hyperswitch/crates/router/src/core/payments.rs :: generate_response (function, crate=router)

Negatives:
- hyperswitch/crates/router/src/core/user.rs :: update_user_authentication_method
- hyperswitch/crates/events/src/lib.rs :: key
- hyperswitch/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs :: get_qr_code_response
- hyperswitch/crates/router/tests/connectors/placetopay.rs :: should_partially_refund_succeeded_payment
- hyperswitch/crates/hyperswitch_connectors/src/connectors/square.rs :: handle_response