[][src]Struct oauth2::State

#[must_use]
pub struct State(_);

Value used for CSRF protection via the state parameter.

Methods

impl State[src]

pub fn new_random() -> Self[src]

Generate a new random, base64-encoded 128-bit CSRF token.

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

Convert into base64.

Trait Implementations

impl AsRef<[u8]> for State[src]

impl Clone for State[src]

impl Copy for State[src]

impl Debug for State[src]

impl Deref for State[src]

type Target = [u8]

The resulting type after dereferencing.

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

impl Eq for State[src]

impl Hash for State[src]

impl<'a> Into<Cow<'a, [u8]>> for &'a State[src]

impl Ord for State[src]

impl PartialEq<State> for State[src]

impl PartialOrd<State> for State[src]

impl Serialize for State[src]

impl StructuralEq for State[src]

impl StructuralPartialEq for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,