hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat: Add crate attribute to operation macro

Open dracarys18 opened this issue 1 year ago • 0 comments

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

dracarys18 avatar Jan 23 '23 06:01 dracarys18