refactor(configs): make kms module and KmsDecrypt pub (#1274)

This commit is contained in:
Abhishek Marrivagu
2023-05-25 17:09:08 +05:30
committed by GitHub
parent 28f0d1f535
commit f0db9937c7
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
mod defaults;
#[cfg(feature = "kms")]
pub(super) mod kms;
pub mod kms;
pub mod settings;
mod validations;

View File

@ -6,7 +6,7 @@ use crate::configs::settings;
#[async_trait::async_trait]
// 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>
where
Self: Sized;