Struct csrf::CsrfCookie
[−]
[src]
pub struct CsrfCookie { /* fields omitted */ }A signed, encrypted CSRF cookie that is suitable to be displayed to end users.
Methods
impl CsrfCookie[src]
fn new(bytes: Vec<u8>) -> Self[src]
Create a new cookie from the given token bytes.
fn b64_string(&self) -> String[src]
Get the base64 value of this cookie.
fn value(&self) -> &[u8][src]
Get be raw value of this cookie.
Trait Implementations
impl Debug for CsrfCookie[src]
impl Eq for CsrfCookie[src]
impl PartialEq for CsrfCookie[src]
fn eq(&self, __arg_0: &CsrfCookie) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CsrfCookie) -> bool[src]
This method tests for !=.
impl Clone for CsrfCookie[src]
fn clone(&self) -> CsrfCookie[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