Skip to content

Commit

Permalink
Merge pull request #64 from eopb/push-kqoxpuzqzmry
Browse files Browse the repository at this point in the history
docs: update for `SerializableSecret`
  • Loading branch information
eopb authored May 11, 2024
2 parents 50dbf86 + e825219 commit 65e570c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ impl<'de, T: Deserialize<'de>> Deserialize<'de> for Secret<T> {

/// A serializable type that contains a secret.
///
/// This abstraction enables [expose_secret] to be used to serialize both `Secret<T>` and
/// `Option<Secret<T>>`.
///
/// This type is currently private. If you feel that a public `SerializableSecret` could
/// be useful for your use case please open a PR :)
/// This abstraction enables [expose_secret] to be used to serialize both `Secret<T>`, `&Secret<T>`
/// and `Option<Secret<T>>`.
pub trait SerializableSecret<T> {
type Exposed<'a>: Serialize
where
Expand Down

0 comments on commit 65e570c

Please sign in to comment.