mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat: fetch merchant key store only once per session (#1400)
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -402,14 +402,25 @@ impl<T: Clone, S: masking::Strategy<T>> Encryptable<Secret<T, S>> {
|
||||
|
||||
impl<T: Clone> Encryptable<T> {
|
||||
///
|
||||
/// Get the inner data while consumping self
|
||||
/// Get the inner data while consuming self
|
||||
///
|
||||
#[inline]
|
||||
pub fn into_inner(self) -> T {
|
||||
self.inner
|
||||
}
|
||||
|
||||
///
|
||||
/// Get the reference to inner value
|
||||
///
|
||||
#[inline]
|
||||
pub fn get_inner(&self) -> &T {
|
||||
&self.inner
|
||||
}
|
||||
|
||||
///
|
||||
/// Get the inner encrypted data while consuming self
|
||||
///
|
||||
#[inline]
|
||||
pub fn into_encrypted(self) -> Secret<Vec<u8>, EncryptionStratergy> {
|
||||
self.encrypted
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user