hyperswitch
hyperswitch copied to clipboard
feat: Add crate attribute to operation macro
Type of Change
- [x] Enhancement
Description
Add crate attribute to operation macro make it usable in other crates.
Motivation and Context
With this change this macro can be used in orca cloud repo usage:
#[derive(PaymentOperation)
#[operation(crate = "current_crate")]
struct Payment;
How did you test it?
Manual
Checklist
- [x] I formatted the code
cargo +nightly fmt --all
- [x] I addressed lints thrown by
cargo clippy
- [x] I reviewed submitted code