pub struct HTTPRouteRulesFiltersUrlRewritePath {
pub replace_full_path: Option<String>,
pub replace_prefix_match: Option<String>,
pub type: HTTPRouteRulesFiltersUrlRewritePathType,
}
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: HTTPRouteRulesFiltersUrlRewritePathType
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 HTTPRouteRulesFiltersUrlRewritePath
impl Clone for HTTPRouteRulesFiltersUrlRewritePath
source§fn clone(&self) -> HTTPRouteRulesFiltersUrlRewritePath
fn clone(&self) -> HTTPRouteRulesFiltersUrlRewritePath
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for HTTPRouteRulesFiltersUrlRewritePath
impl Default for HTTPRouteRulesFiltersUrlRewritePath
source§fn default() -> HTTPRouteRulesFiltersUrlRewritePath
fn default() -> HTTPRouteRulesFiltersUrlRewritePath
source§impl<'de> Deserialize<'de> for HTTPRouteRulesFiltersUrlRewritePath
impl<'de> Deserialize<'de> for HTTPRouteRulesFiltersUrlRewritePath
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 HTTPRouteRulesFiltersUrlRewritePath
impl JsonSchema for HTTPRouteRulesFiltersUrlRewritePath
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for HTTPRouteRulesFiltersUrlRewritePath
impl PartialEq for HTTPRouteRulesFiltersUrlRewritePath
source§fn eq(&self, other: &HTTPRouteRulesFiltersUrlRewritePath) -> bool
fn eq(&self, other: &HTTPRouteRulesFiltersUrlRewritePath) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for HTTPRouteRulesFiltersUrlRewritePath
Auto Trait Implementations§
impl Freeze for HTTPRouteRulesFiltersUrlRewritePath
impl RefUnwindSafe for HTTPRouteRulesFiltersUrlRewritePath
impl Send for HTTPRouteRulesFiltersUrlRewritePath
impl Sync for HTTPRouteRulesFiltersUrlRewritePath
impl Unpin for HTTPRouteRulesFiltersUrlRewritePath
impl UnwindSafe for HTTPRouteRulesFiltersUrlRewritePath
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)