mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
refactor(configs): make kms module and KmsDecrypt pub (#1274)
This commit is contained in:
committed by
GitHub
parent
28f0d1f535
commit
f0db9937c7
@ -1,5 +1,5 @@
|
|||||||
mod defaults;
|
mod defaults;
|
||||||
#[cfg(feature = "kms")]
|
#[cfg(feature = "kms")]
|
||||||
pub(super) mod kms;
|
pub mod kms;
|
||||||
pub mod settings;
|
pub mod settings;
|
||||||
mod validations;
|
mod validations;
|
||||||
|
|||||||
@ -6,7 +6,7 @@ use crate::configs::settings;
|
|||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
// This trait performs inplace decryption of the structure on which this is implemented
|
// This trait performs inplace decryption of the structure on which this is implemented
|
||||||
pub(crate) trait KmsDecrypt {
|
pub trait KmsDecrypt {
|
||||||
async fn decrypt_inner(self, kms_config: &kms::KmsConfig) -> CustomResult<Self, kms::KmsError>
|
async fn decrypt_inner(self, kms_config: &kms::KmsConfig) -> CustomResult<Self, kms::KmsError>
|
||||||
where
|
where
|
||||||
Self: Sized;
|
Self: Sized;
|
||||||
|
|||||||
Reference in New Issue
Block a user