Struct csrf::UnencryptedCsrfToken
[−]
[src]
pub struct UnencryptedCsrfToken { /* fields omitted */ }
Internal represenation of an unencrypted CSRF token. This is not suitable to send to end users.
Methods
impl UnencryptedCsrfToken
[src]
fn new(token: Vec<u8>) -> Self
[src]
Create a new unenrypted token.
fn token(&self) -> &[u8]
[src]
Deprecated
Retrieve the token value as bytes.
fn value(&self) -> &[u8]
[src]
Retrieve the token value as bytes.
Trait Implementations
impl Clone for UnencryptedCsrfToken
[src]
fn clone(&self) -> UnencryptedCsrfToken
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for UnencryptedCsrfToken
[src]
impl Eq for UnencryptedCsrfToken
[src]
impl PartialEq for UnencryptedCsrfToken
[src]
fn eq(&self, __arg_0: &UnencryptedCsrfToken) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnencryptedCsrfToken) -> bool
[src]
This method tests for !=
.