pub enum HttpPathMatchRewrite {
Exact(String, Option<String>),
Prefix(String, Option<String>),
RegExp(Regex, Option<String>),
}Expand description
PathMatchType specifies the semantics of how HTTP paths should be compared.
Variants§
Exact(String, Option<String>)
Matches the URL path exactly and with case sensitivity.
Prefix(String, Option<String>)
Matches based on a URL path prefix split by /. Matching is case sensitive and done on a path element by element basis. A path element refers to the list of labels in the path split by the / separator. When specified, a trailing / is ignored.
RegExp(Regex, Option<String>)
Matches if the URL path matches the given regular expression with case sensitivity.
Implementations§
Trait Implementations§
Source§impl Clone for HttpPathMatchRewrite
impl Clone for HttpPathMatchRewrite
Source§fn clone(&self) -> HttpPathMatchRewrite
fn clone(&self) -> HttpPathMatchRewrite
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 HttpPathMatchRewrite
impl Debug for HttpPathMatchRewrite
Source§impl From<HttpPathMatchRewrite> for HttpRouteMatch
impl From<HttpPathMatchRewrite> for HttpRouteMatch
Source§fn from(val: HttpPathMatchRewrite) -> Self
fn from(val: HttpPathMatchRewrite) -> Self
Converts to this type from the input type.
Source§impl MatchRequest for HttpPathMatchRewrite
impl MatchRequest for HttpPathMatchRewrite
Auto Trait Implementations§
impl Freeze for HttpPathMatchRewrite
impl RefUnwindSafe for HttpPathMatchRewrite
impl Send for HttpPathMatchRewrite
impl Sync for HttpPathMatchRewrite
impl Unpin for HttpPathMatchRewrite
impl UnwindSafe for HttpPathMatchRewrite
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