Trait actix_csrf::extractor::CsrfGuarded
source · [−]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
fn csrf_token(&self) -> &CsrfToken
fn csrf_token(&self) -> &CsrfToken
Retrieves the CSRF token from the struct.