pub enum CSRFType {
Header,
Param,
ForceHeader,
ForceParam,
Disabled,
}
Available on crate features
router
and csrf
only.Variants§
Implementations§
Source§impl CSRFType
impl CSRFType
Sourcepub fn is_force_header(&self) -> bool
pub fn is_force_header(&self) -> bool
Returns true if this is a CSRFType::ForceHeader
, otherwise false
Sourcepub fn is_force_param(&self) -> bool
pub fn is_force_param(&self) -> bool
Returns true if this is a CSRFType::ForceParam
, otherwise false
Sourcepub fn is_disabled(&self) -> bool
pub fn is_disabled(&self) -> bool
Returns true if this is a CSRFType::Disabled
, otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CSRFType
impl<'de> Deserialize<'de> for CSRFType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CSRFType
Auto Trait Implementations§
impl Freeze for CSRFType
impl RefUnwindSafe for CSRFType
impl Send for CSRFType
impl Sync for CSRFType
impl Unpin for CSRFType
impl UnwindSafe for CSRFType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more