pub trait CsrfExt {
// Required methods
fn csrf_token(&self) -> String;
fn verify_csrf(&self, submitted: Option<&str>) -> Result<()>;
}Expand description
Request helpers for CSRF tokens.
Required Methods§
Sourcefn csrf_token(&self) -> String
fn csrf_token(&self) -> String
Session CSRF token (creates one if missing).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".