pub enum MiddlewareType {
Authentication,
Authorization,
CORS,
Compression,
CSRF,
Logging,
RateLimiting,
Session,
StaticFiles,
Custom(String),
}
Variants§
Authentication
Authorization
CORS
Compression
CSRF
Logging
RateLimiting
Session
StaticFiles
Custom(String)
Trait Implementations§
Source§impl Clone for MiddlewareType
impl Clone for MiddlewareType
Source§fn clone(&self) -> MiddlewareType
fn clone(&self) -> MiddlewareType
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 MiddlewareType
impl Debug for MiddlewareType
Source§impl<'de> Deserialize<'de> for MiddlewareType
impl<'de> Deserialize<'de> for MiddlewareType
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
Source§impl PartialEq for MiddlewareType
impl PartialEq for MiddlewareType
Source§impl Serialize for MiddlewareType
impl Serialize for MiddlewareType
impl StructuralPartialEq for MiddlewareType
Auto Trait Implementations§
impl Freeze for MiddlewareType
impl RefUnwindSafe for MiddlewareType
impl Send for MiddlewareType
impl Sync for MiddlewareType
impl Unpin for MiddlewareType
impl UnwindSafe for MiddlewareType
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