Trait oauth2::prelude::SecretNewType
source · 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§
sourcefn secret(&self) -> &T
fn secret(&self) -> &T
Get the secret contained within this type.
Security Warning
Leaking this value may compromise the security of the OAuth2 flow.