mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
feat: add a wrapper for encryption and decryption (#5502)
This commit is contained in:
@ -301,3 +301,14 @@ mod id_type {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the type name for a type
|
||||
#[macro_export]
|
||||
macro_rules! type_name {
|
||||
($type:ty) => {
|
||||
std::any::type_name::<$type>()
|
||||
.rsplit("::")
|
||||
.nth(1)
|
||||
.unwrap_or_default();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user