pub struct CsrfConfig { /* private fields */ }Expand description
Stateless double-submit HMAC-SHA256 CSRF protection settings.
Implementations§
Source§impl CsrfConfig
Inherent constructors for CsrfConfig.
impl CsrfConfig
Inherent constructors for CsrfConfig.
Source§impl CsrfConfig
impl CsrfConfig
pub fn get_enabled(&self) -> bool
pub fn get_mut_enabled(&mut self) -> &mut bool
pub fn set_enabled(&mut self, val: bool) -> &mut Self
pub fn get_secret(&self) -> &Vec<u8> ⓘ
pub fn get_mut_secret(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_secret(&mut self, val: Vec<u8>) -> &mut Self
pub fn get_header_name(&self) -> &String
pub fn get_mut_header_name(&mut self) -> &mut String
pub fn set_header_name(&mut self, val: String) -> &mut Self
pub fn get_exempt_paths(&self) -> &Vec<String>
pub fn get_mut_exempt_paths(&mut self) -> &mut Vec<String>
pub fn set_exempt_paths(&mut self, val: Vec<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for CsrfConfig
impl Clone for CsrfConfig
Source§impl Debug for CsrfConfig
impl Debug for CsrfConfig
Source§impl Default for CsrfConfig
Default construction for CsrfConfig.
impl Default for CsrfConfig
Default construction for CsrfConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a disabled CsrfConfig with standard cookie and header names.
impl Eq for CsrfConfig
Source§impl PartialEq for CsrfConfig
impl PartialEq for CsrfConfig
impl StructuralPartialEq for CsrfConfig
Auto Trait Implementations§
impl Forget for CsrfConfig
impl Freeze for CsrfConfig
impl Move for CsrfConfig
impl RefUnwindSafe for CsrfConfig
impl Send for CsrfConfigwhere
RawVecInner: Send,
impl Sync for CsrfConfigwhere
RawVecInner: Sync,
impl Unpin for CsrfConfig
impl UnsafeUnpin for CsrfConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CsrfConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.