pub struct HTTPRouteRulesBackendRefsFiltersUrlRewritePath {
pub replace_full_path: Option<String>,
pub replace_prefix_match: Option<String>,
pub type: HTTPRouteRulesBackendRefsFiltersUrlRewritePathType,
}
Expand description
Path defines a path rewrite.
Support: Extended
Fields§
§replace_full_path: Option<String>
ReplaceFullPath specifies the value with which to replace the full path of a request during a rewrite or redirect.
replace_prefix_match: Option<String>
ReplacePrefixMatch specifies the value with which to replace the prefix match of a request during a rewrite or redirect. For example, a request to “/foo/bar” with a prefix match of “/foo” and a ReplacePrefixMatch of “/xyz” would be modified to “/xyz/bar”.
Note that this matches the behavior of the PathPrefix match type. This
matches full path elements. A path element refers to the list of labels
in the path split by the /
separator. When specified, a trailing /
is
ignored. For example, the paths /abc
, /abc/
, and /abc/def
would all
match the prefix /abc
, but the path /abcd
would not.
ReplacePrefixMatch is only compatible with a PathPrefix
HTTPRouteMatch.
Using any other HTTPRouteMatch type on the same HTTPRouteRule will result in
the implementation setting the Accepted Condition for the Route to status: False
.
Request Path | Prefix Match | Replace Prefix | Modified Path
type: HTTPRouteRulesBackendRefsFiltersUrlRewritePathType
Type defines the type of path modifier. Additional types may be added in a future release of the API.
Note that values may be added to this enum, implementations must ensure that unknown values will not cause a crash.
Unknown values here must result in the implementation setting the
Accepted Condition for the Route to status: False
, with a
Reason of UnsupportedValue
.
Trait Implementations§
Source§impl Clone for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl Clone for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
Source§fn clone(&self) -> HTTPRouteRulesBackendRefsFiltersUrlRewritePath
fn clone(&self) -> HTTPRouteRulesBackendRefsFiltersUrlRewritePath
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl Default for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
Source§fn default() -> HTTPRouteRulesBackendRefsFiltersUrlRewritePath
fn default() -> HTTPRouteRulesBackendRefsFiltersUrlRewritePath
Source§impl<'de> Deserialize<'de> for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl<'de> Deserialize<'de> for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
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>,
Source§impl JsonSchema for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl JsonSchema for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl PartialEq for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
Source§fn eq(&self, other: &HTTPRouteRulesBackendRefsFiltersUrlRewritePath) -> bool
fn eq(&self, other: &HTTPRouteRulesBackendRefsFiltersUrlRewritePath) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
Auto Trait Implementations§
impl Freeze for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl RefUnwindSafe for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl Send for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl Sync for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl Unpin for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
impl UnwindSafe for HTTPRouteRulesBackendRefsFiltersUrlRewritePath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more