|
|
@ -38,6 +38,7 @@ mod serialize_secret_internal { |
|
|
|
/// concerns serialize shouldn't be implemented for secret keys to avoid accidental leakage.
|
|
|
|
/// concerns serialize shouldn't be implemented for secret keys to avoid accidental leakage.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// Whenever this struct is used the integrity of security boundaries should be checked carefully.
|
|
|
|
/// Whenever this struct is used the integrity of security boundaries should be checked carefully.
|
|
|
|
|
|
|
|
#[derive(Debug, Eq, PartialEq, Clone)] |
|
|
|
pub struct SerdeSecret<T>(pub T); |
|
|
|
pub struct SerdeSecret<T>(pub T); |
|
|
|
|
|
|
|
|
|
|
|
impl<T> Deref for SerdeSecret<T> { |
|
|
|
impl<T> Deref for SerdeSecret<T> { |
|
|
|