pub struct CsrfHeader(/* private fields */);Expand description
Extractor to get the CSRF header from the request.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for CsrfHeader
impl AsRef<str> for CsrfHeader
Source§impl Clone for CsrfHeader
impl Clone for CsrfHeader
Source§fn clone(&self) -> CsrfHeader
fn clone(&self) -> CsrfHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CsrfGuarded for CsrfHeader
impl CsrfGuarded for CsrfHeader
Source§fn csrf_token(&self) -> &CsrfToken
fn csrf_token(&self) -> &CsrfToken
Retrieves the CSRF token from the struct.
Source§impl Debug for CsrfHeader
impl Debug for CsrfHeader
impl Eq for CsrfHeader
Source§impl FromRequest for CsrfHeader
impl FromRequest for CsrfHeader
Source§type Future = Ready<Result<CsrfHeader, <CsrfHeader as FromRequest>::Error>>
type Future = Ready<Result<CsrfHeader, <CsrfHeader as FromRequest>::Error>>
Future that resolves to a Self.
Source§fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
Create a Self from request parts asynchronously.
Source§impl Hash for CsrfHeader
impl Hash for CsrfHeader
Source§impl Ord for CsrfHeader
impl Ord for CsrfHeader
Source§fn cmp(&self, other: &CsrfHeader) -> Ordering
fn cmp(&self, other: &CsrfHeader) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CsrfHeader
impl PartialEq for CsrfHeader
Source§fn eq(&self, other: &CsrfHeader) -> bool
fn eq(&self, other: &CsrfHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CsrfHeader
impl PartialOrd for CsrfHeader
impl StructuralPartialEq for CsrfHeader
Auto Trait Implementations§
impl Freeze for CsrfHeader
impl RefUnwindSafe for CsrfHeader
impl Send for CsrfHeader
impl Sync for CsrfHeader
impl Unpin for CsrfHeader
impl UnsafeUnpin for CsrfHeader
impl UnwindSafe for CsrfHeader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.