pub trait SecretNewType<T>: Debug {
    fn new(val: T) -> Self
    where
        Self: Sized
; fn secret(&self) -> &T; }
Expand description

New type representing a secret value to wrap a more primitive type in a more typesafe manner.

Required Methods§

Create a new instance to wrap the given val.

Get the secret contained within this type.

Security Warning

Leaking this value may compromise the security of the OAuth2 flow.

Implementors§