mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
feat(kafka): add payment_intent payment_attempt and refund kafka events for v2 (#8328)
Co-authored-by: Kashif <kashif.dev@protonmail.com>
This commit is contained in:
@ -85,6 +85,14 @@ where
|
||||
{
|
||||
StrongSecret::new(self.inner_secret)
|
||||
}
|
||||
|
||||
/// Convert to [`Secret`] with a reference to the inner secret
|
||||
pub fn as_ref(&self) -> Secret<&SecretValue, MaskingStrategy>
|
||||
where
|
||||
MaskingStrategy: for<'a> Strategy<&'a SecretValue>,
|
||||
{
|
||||
Secret::new(self.peek())
|
||||
}
|
||||
}
|
||||
|
||||
impl<SecretValue, MaskingStrategy> PeekInterface<SecretValue>
|
||||
|
||||
@ -31,6 +31,8 @@ impl SerializableSecret for url::Url {}
|
||||
#[cfg(feature = "time")]
|
||||
impl SerializableSecret for time::Date {}
|
||||
|
||||
impl<T: SerializableSecret> SerializableSecret for &T {}
|
||||
|
||||
impl<'de, T, I> Deserialize<'de> for Secret<T, I>
|
||||
where
|
||||
T: Clone + de::DeserializeOwned + Sized,
|
||||
|
||||
Reference in New Issue
Block a user