pub struct ProxyRewrite {
pub uri: Option<String>,
pub method: Option<ProxyRewriteMethod>,
pub regex_uri: Option<Vec<String>>,
pub host: Option<String>,
pub use_real_request_uri_unsafe: Option<bool>,
pub headers: Option<ProxyRewriteHeaders>,
}Expand description
The proxy-rewrite Plugin rewrites Upstream proxy information such as scheme, uri and host. Documentation
Fields§
§uri: Option<String>§method: Option<ProxyRewriteMethod>§regex_uri: Option<Vec<String>>§host: Option<String>§use_real_request_uri_unsafe: Option<bool>§headers: Option<ProxyRewriteHeaders>Trait Implementations§
Source§impl Clone for ProxyRewrite
impl Clone for ProxyRewrite
Source§fn clone(&self) -> ProxyRewrite
fn clone(&self) -> ProxyRewrite
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 ProxyRewrite
impl Debug for ProxyRewrite
Source§impl Default for ProxyRewrite
impl Default for ProxyRewrite
Source§fn default() -> ProxyRewrite
fn default() -> ProxyRewrite
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProxyRewrite
impl<'de> Deserialize<'de> for ProxyRewrite
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 From<ProxyRewrite> for ProxyRewriteBuilder
impl From<ProxyRewrite> for ProxyRewriteBuilder
Source§fn from(item: ProxyRewrite) -> Self
fn from(item: ProxyRewrite) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProxyRewrite
impl PartialEq for ProxyRewrite
Source§impl Serialize for ProxyRewrite
impl Serialize for ProxyRewrite
impl Plugin for ProxyRewrite
impl StructuralPartialEq for ProxyRewrite
Auto Trait Implementations§
impl Freeze for ProxyRewrite
impl RefUnwindSafe for ProxyRewrite
impl Send for ProxyRewrite
impl Sync for ProxyRewrite
impl Unpin for ProxyRewrite
impl UnwindSafe for ProxyRewrite
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