Struct csrf::UnencryptedCsrfCookie
[−]
[src]
pub struct UnencryptedCsrfCookie { /* fields omitted */ }
Internal represenation of an unencrypted CSRF cookie. This is not suitable to send to end users.
Methods
impl UnencryptedCsrfCookie
[src]
fn new(expires: i64, token: Vec<u8>) -> Self
[src]
Create a new unenrypted cookie.
fn value(&self) -> &[u8]
[src]
Retrieve the token value as bytes.
Trait Implementations
impl Clone for UnencryptedCsrfCookie
[src]
fn clone(&self) -> UnencryptedCsrfCookie
[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 UnencryptedCsrfCookie
[src]
impl Eq for UnencryptedCsrfCookie
[src]
impl PartialEq for UnencryptedCsrfCookie
[src]
fn eq(&self, __arg_0: &UnencryptedCsrfCookie) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnencryptedCsrfCookie) -> bool
[src]
This method tests for !=
.