pub struct MiddlewareConfig {
pub blocked_paths: Vec<String>,
pub required_headers: Vec<String>,
}Expand description
Configuration for the middleware pipeline.
Fields§
§blocked_paths: Vec<String>Paths to block (exact match).
required_headers: Vec<String>Required headers. Requests missing any of these are rejected.
Trait Implementations§
Source§impl Clone for MiddlewareConfig
impl Clone for MiddlewareConfig
Source§fn clone(&self) -> MiddlewareConfig
fn clone(&self) -> MiddlewareConfig
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 MiddlewareConfig
impl Debug for MiddlewareConfig
Source§impl Default for MiddlewareConfig
impl Default for MiddlewareConfig
Source§fn default() -> MiddlewareConfig
fn default() -> MiddlewareConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MiddlewareConfig
impl<'de> Deserialize<'de> for MiddlewareConfig
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
Auto Trait Implementations§
impl Freeze for MiddlewareConfig
impl RefUnwindSafe for MiddlewareConfig
impl Send for MiddlewareConfig
impl Sync for MiddlewareConfig
impl Unpin for MiddlewareConfig
impl UnsafeUnpin for MiddlewareConfig
impl UnwindSafe for MiddlewareConfig
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