[][src]Struct oauth2::PkceCodeVerifier

pub struct PkceCodeVerifier(_);

Code Verifier used for PKCE protection via the code_verifier parameter. The value must have a minimum length of 43 characters and a maximum length of 128 characters. Each character must be ASCII alphanumeric or one of the characters "-" / "." / "_" / "~".

Implementations

impl PkceCodeVerifier[src]

pub fn new(s: String) -> Self[src]

Create a new PkceCodeVerifier to wrap the given String.

pub fn secret(&self) -> &String[src]

Get the secret contained within this PkceCodeVerifier.

Security Warning

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

Trait Implementations

impl Debug for PkceCodeVerifier[src]

impl<'de> Deserialize<'de> for PkceCodeVerifier[src]

impl Serialize for PkceCodeVerifier[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,