Enum actix_cloud::router::CSRFType
source · pub enum CSRFType {
Header,
Param,
ForceHeader,
ForceParam,
Disabled,
}Available on crate feature
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§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)