[Snippet rust]
```rust
fn from(value: enums::CardRedirectType) -> Self {
        match value {
            enums::CardRedirectType::Benefit => Self::Benefit,
            enums::CardRedirectType::Knet => Self::Knet,
            enums::CardRedirectType::MomoAtm => Self::MomoAtm,
```
Path: hyperswitch/crates/euclid/src/frontend/dir/lowering.rs :: from (function, crate=euclid)

Negatives:
- hyperswitch/crates/router/src/types/api/verify_connector.rs :: verify
- hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs :: get_request_body
- hyperswitch/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs :: try_from
- hyperswitch/crates/router/src/db/merchant_connector_account.rs :: set_access_token
- hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs :: get_error_response