mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
Testability ddd repository (#55)
This commit is contained in:
@ -9,7 +9,7 @@ use crate::{strategy::Strategy, PeekInterface};
|
||||
///
|
||||
/// Secret thing.
|
||||
///
|
||||
/// To get access to value use method `expose()` of trait [`ExposeInterface`].
|
||||
/// To get access to value use method `expose()` of trait [`crate::ExposeInterface`].
|
||||
///
|
||||
/// ## Masking
|
||||
/// Use the [`crate::strategy::Strategy`] trait to implement a masking strategy on a unit struct
|
||||
|
||||
@ -9,7 +9,7 @@ use crate::{PeekInterface, Secret, Strategy, StrongSecret, ZeroizableSecret};
|
||||
/// Marker trait for secret types which can be [`Serialize`]-d by [`serde`].
|
||||
///
|
||||
/// When the `serde` feature of this crate is enabled and types are marked with
|
||||
/// this trait, they receive a [`Serialize` impl][1] for `Secret<T>`.
|
||||
/// this trait, they receive a [`Serialize` impl] for `Secret<T>`.
|
||||
/// (NOTE: all types which impl `DeserializeOwned` receive a [`Deserialize`]
|
||||
/// impl)
|
||||
///
|
||||
|
||||
@ -33,6 +33,6 @@ where
|
||||
T: fmt::Display,
|
||||
{
|
||||
fn fmt(val: &T, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str(&format!("{}", val))
|
||||
fmt::Display::fmt(val, f)
|
||||
}
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ use crate::{strategy::Strategy, PeekInterface};
|
||||
///
|
||||
/// Secret thing.
|
||||
///
|
||||
/// To get access to value use method `expose()` of trait [`ExposeInterface`].
|
||||
/// To get access to value use method `expose()` of trait [`crate::ExposeInterface`].
|
||||
///
|
||||
|
||||
pub struct StrongSecret<S: ZeroizableSecret, I = crate::WithType> {
|
||||
|
||||
Reference in New Issue
Block a user