pub struct PathRewriteFilterConfig {
pub pattern: String,
pub replacement: String,
pub rewrite_request: bool,
pub rewrite_response: bool,
}
Expand description
Configuration for a path rewrite filter.
Fields§
§pattern: String
The pattern to match (regex)
replacement: String
The replacement pattern
rewrite_request: bool
Whether to apply on the request path
rewrite_response: bool
Whether to apply on the response path (if found in headers or body)
Trait Implementations§
Source§impl Clone for PathRewriteFilterConfig
impl Clone for PathRewriteFilterConfig
Source§fn clone(&self) -> PathRewriteFilterConfig
fn clone(&self) -> PathRewriteFilterConfig
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 PathRewriteFilterConfig
impl Debug for PathRewriteFilterConfig
Source§impl<'de> Deserialize<'de> for PathRewriteFilterConfig
impl<'de> Deserialize<'de> for PathRewriteFilterConfig
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 PathRewriteFilterConfig
impl RefUnwindSafe for PathRewriteFilterConfig
impl Send for PathRewriteFilterConfig
impl Sync for PathRewriteFilterConfig
impl Unpin for PathRewriteFilterConfig
impl UnwindSafe for PathRewriteFilterConfig
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