Issue:
[REFACTOR] Simplify the method signatures of some methods in the `Encode` extension trait

### Description

The definition of the [`common_utils::ext_traits::Encode`](https://github.com/juspay/hyperswitch/blob/fb254b8924808e6a2b2a9a31dbed78749836e8d3/crates/common_utils/src/ext_traits.rs#L21) trait has a generic type parameter `P`, which is used in only a subset of the trait methods. This causes the type having to be specified when calling methods which don't use that generic type parameter, such as the [`encode_to_value()`](https://github.com/juspay/hyperswitch/blob/fb254b8924808e6a2b2a9a31dbed78749836e8d3/crates/common_utils/src/ext_traits.rs#L78) method, used to convert a type which implements `serde::Serialize` to a `serde_json::Value`.

One such usage is:

https://github.com/juspay/hyperswitch/blob/fb254b8924808e6a2b2a9a31dbed78749836e8d3/crates/router/src/routes/payments/helpers.rs#L76-L80

Ignoring the error handling and propagation bolierplate code, it looks like so:

```rust
use common_utils::ext_traits::Encode; // Include trait in scope

let encoded = Encode::<types::BrowserInformation>::encode_to_value(&browser_info)?;
```

This can be simplified to something like this (since the compiler is able to infer types in most cases):

```rust
use common_utils::ext_traits::Encode; // Include trait in scope

let encoded = browser_info.encode_to_value()?;
```

### Possible Implementation

Remove the generic type parameter `P` on the trait, and add it in the trait methods which use that type parameter.


Resolution:
<think>
PR Context:
- Title: refactor(ext_traits): simplify the signatures of some methods in `Encode` extension trait
- Merged: 2024-02-19T10:08:24Z
- Files changed: 30 files
- Commits: 3 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
This PR simplifies the definition of the `common_utils::ext_traits::Encode` trait to simplify the invocation of the trait methods.

In addition, this PR addresses a clippy lint introduced in Rust 1.76.

## Motivation and Context
<!--
Why
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** refactor(ext_traits): simplify the signatures of some methods in `Encode` extension trait (#3687)
Files to modify:


**crates/api_models/src/payments.rs**
  Modify existing code

**crates/common_utils/src/ext_traits.rs**
  Modify existing code

**crates/redis_interface/src/commands.rs**
  Modify existing code

**crates/router/src/compatibility/stripe/webhooks.rs**
  Modify existing code

**crates/router/src/connector/adyen/transformers.rs**
  Modify existing code

**crates/router/src/connector/authorizedotnet/transformers.rs**
  Modify existing code

**crates/router/src/connector/bluesnap/transformers.rs**
  Modify existing code

**crates/router/src/connector/checkout.rs**
  Modify existing code

**crates/router/src/connector/globepay/transformers.rs**
  Modify existing code

**crates/router/src/connector/noon/transformers.rs**
  Modify existing code

**crates/router/src/connector/nuvei/transformers.rs**
  Modify existing code

**crates/router/src/connector/payeezy/transformers.rs**
  Modify existing code

**crates/router/src/connector/rapyd.rs**
  Modify existing code

**crates/router/src/connector/stripe/transformers.rs**
  Modify existing code

**crates/router/src/core/admin.rs**
  Modify existing code

**crates/router/src/core/conditional_config.rs**
  Modify existing code

**crates/router/src/core/connector_onboarding/paypal.rs**
  Modify existing code

**crates/router/src/core/disputes.rs**
  Modify existing code

**crates/router/src/core/fraud_check/operation/fraud_check_post.rs**
  Modify existing code

**crates/router/src/core/fraud_check/operation/fraud_check_pre.rs**
  Modify existing code

**crates/router/src/core/mandate.rs**
  Modify existing code

**crates/router/src/core/payment_methods/cards.rs**
  Modify existing code

**crates/router/src/core/payment_methods/transformers.rs**
  Modify existing code

**crates/router/src/core/payment_methods/vault.rs**
  Modify existing code

**crates/router/src/core/payments.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_complete_authorize.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_confirm.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_create.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_response.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_update.rs**
  Modify existing code

**crates/router/src/core/payments/retry.rs**
  Modify existing code

**crates/router/src/core/payments/types.rs**
  Modify existing code

**crates/router/src/core/routing.rs**
  Modify existing code

**crates/router/src/core/routing/helpers.rs**
  Modify existing code

**crates/router/src/core/surcharge_decision_config.rs**
  Modify existing code

**crates/router/src/core/webhooks/types.rs**
  Modify existing code

**crates/router/src/db/merchant_connector_account.rs**
  Modify existing code

**crates/router/src/db/refund.rs**
  Modify existing code

**crates/router/src/routes/payment_methods.rs**
  Modify existing code

**crates/router/src/routes/payments/helpers.rs**
  Modify existing code

**crates/router/src/services/api.rs**
  Modify existing code

**crates/router/src/types/api/admin.rs**
  Modify existing code

**crates/storage_impl/src/payments/payment_intent.rs**
  Modify existing code