Testability ddd repository (#55)

This commit is contained in:
kos-for-juspay
2022-12-03 07:18:51 +02:00
committed by GitHub
parent 35289df715
commit 200a085fd0
116 changed files with 3551 additions and 1653 deletions

View File

@ -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

View File

@ -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)
///

View File

@ -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)
}
}

View File

@ -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> {