1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub struct HashedSecret(String); impl HashedSecret { pub fn new(secret: String) -> Self { Self(secret) } pub fn inner(&self) -> &str { &self.0 } pub fn into_inner(self) -> String { self.0 } }