pub struct CsrfHeaderConfig { /* private fields */ }
Expand description
Configuration struct for CsrfHeader
.
Implementations§
Source§impl CsrfHeaderConfig
impl CsrfHeaderConfig
Sourcepub const fn new(header_name: HeaderName) -> Self
pub const fn new(header_name: HeaderName) -> Self
Sets the header name to read the CSRF token from.
Trait Implementations§
Source§impl Clone for CsrfHeaderConfig
impl Clone for CsrfHeaderConfig
Source§fn clone(&self) -> CsrfHeaderConfig
fn clone(&self) -> CsrfHeaderConfig
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 Debug for CsrfHeaderConfig
impl Debug for CsrfHeaderConfig
Source§impl Default for CsrfHeaderConfig
impl Default for CsrfHeaderConfig
Source§impl Hash for CsrfHeaderConfig
impl Hash for CsrfHeaderConfig
Source§impl PartialEq for CsrfHeaderConfig
impl PartialEq for CsrfHeaderConfig
impl Eq for CsrfHeaderConfig
impl StructuralPartialEq for CsrfHeaderConfig
Auto Trait Implementations§
impl !Freeze for CsrfHeaderConfig
impl RefUnwindSafe for CsrfHeaderConfig
impl Send for CsrfHeaderConfig
impl Sync for CsrfHeaderConfig
impl Unpin for CsrfHeaderConfig
impl UnwindSafe for CsrfHeaderConfig
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
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
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.