Struct csrf::CsrfToken [] [src]

pub struct CsrfToken { /* fields omitted */ }

A signed, encrypted CSRF token that is suitable to be displayed to end users.

Methods

impl CsrfToken
[src]

Create a new token from the given bytes.

Retrieve the CSRF token as a base64 encoded string.

Retrieve the CSRF token as a URL safe base64 encoded string.

Get be raw value of this token.

Trait Implementations

impl Eq for CsrfToken
[src]

impl PartialEq for CsrfToken
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for CsrfToken
[src]

Formats the value using the given formatter.

impl Clone for CsrfToken
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for CsrfToken
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more