pub trait CsrfGuarded {
    fn csrf_token(&self) -> &CsrfToken;
}
Expand description

This trait represents types who have a field that represents a CSRF token.

This trait is required on an underlying type for the Csrf extractor to correctly function.

Required Methods

Retrieves the CSRF token from the struct.

Implementations on Foreign Types

Implementors