Struct twitch_oauth2::types::CsrfToken [−][src]
#[repr(transparent)]pub struct CsrfToken(_);
Expand description
A Csrf Token
Implementations
Converts this CsrfToken
into a Box
<
CsrfTokenRef
>
This will drop any excess capacity.
Unwraps the underlying String
value
Make a new random CSRF token.
Make a new random CSRF token with given amount of bytes
Methods from Deref<Target = CsrfTokenRef>
Get the secret from this string.
This function is the same as CsrfToken::as_str
, but has another name for searchability, prefer to use this function.
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = CsrfTokenRef
type Target = CsrfTokenRef
The resulting type after dereferencing.
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CsrfToken
impl UnwindSafe for CsrfToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more