pub struct HttpRouteURLRewrite {
pub host_rewrite: Option<String>,
pub path_prefix_rewrite: Option<String>,
}Expand description
The specification for modifying the URL of the request, prior to forwarding the request to the destination.
This type is not used in any activity, and only used as part of another schema.
Fields§
§host_rewrite: Option<String>Prior to forwarding the request to the selected destination, the requests host header is replaced by this value.
path_prefix_rewrite: Option<String>Prior to forwarding the request to the selected destination, the matching portion of the requests path is replaced by this value.
Trait Implementations§
Source§impl Clone for HttpRouteURLRewrite
impl Clone for HttpRouteURLRewrite
Source§fn clone(&self) -> HttpRouteURLRewrite
fn clone(&self) -> HttpRouteURLRewrite
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 HttpRouteURLRewrite
impl Debug for HttpRouteURLRewrite
Source§impl Default for HttpRouteURLRewrite
impl Default for HttpRouteURLRewrite
Source§fn default() -> HttpRouteURLRewrite
fn default() -> HttpRouteURLRewrite
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpRouteURLRewrite
impl<'de> Deserialize<'de> for HttpRouteURLRewrite
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 Serialize for HttpRouteURLRewrite
impl Serialize for HttpRouteURLRewrite
impl Part for HttpRouteURLRewrite
Auto Trait Implementations§
impl Freeze for HttpRouteURLRewrite
impl RefUnwindSafe for HttpRouteURLRewrite
impl Send for HttpRouteURLRewrite
impl Sync for HttpRouteURLRewrite
impl Unpin for HttpRouteURLRewrite
impl UnwindSafe for HttpRouteURLRewrite
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