pub enum CsrfPattern {
DoubleSubmitCookie,
}
Expand description
CsrfPattern
allows use to configure CsrfMiddleware
to read and store csrf tokens and
user sessions in client’s browser cookie or in any persistent storage like Redis,
Postgres or in-memory that implements actix_session::storage::SessionStore
trait if
you have enabled session
feature.
Variants§
DoubleSubmitCookie
Trait Implementations§
Source§impl Clone for CsrfPattern
impl Clone for CsrfPattern
Source§fn clone(&self) -> CsrfPattern
fn clone(&self) -> CsrfPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for CsrfPattern
impl PartialEq for CsrfPattern
impl StructuralPartialEq for CsrfPattern
Auto Trait Implementations§
impl Freeze for CsrfPattern
impl RefUnwindSafe for CsrfPattern
impl Send for CsrfPattern
impl Sync for CsrfPattern
impl Unpin for CsrfPattern
impl UnwindSafe for CsrfPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more