pub enum SgHttpPathMatch {
Exact {
value: String,
replace: Option<String>,
},
Prefix {
value: String,
replace: Option<String>,
},
RegExp {
value: String,
replace: Option<String>,
},
}Expand description
PathMatchType specifies the semantics of how HTTP paths should be compared.
Variants§
Exact
Matches the URL path exactly and with case sensitivity.
Prefix
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
Matches if the URL path matches the given regular expression with case sensitivity.
Trait Implementations§
Source§impl Clone for SgHttpPathMatch
impl Clone for SgHttpPathMatch
Source§fn clone(&self) -> SgHttpPathMatch
fn clone(&self) -> SgHttpPathMatch
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 SgHttpPathMatch
impl Debug for SgHttpPathMatch
Source§impl<'de> Deserialize<'de> for SgHttpPathMatch
impl<'de> Deserialize<'de> for SgHttpPathMatch
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
Auto Trait Implementations§
impl Freeze for SgHttpPathMatch
impl RefUnwindSafe for SgHttpPathMatch
impl Send for SgHttpPathMatch
impl Sync for SgHttpPathMatch
impl Unpin for SgHttpPathMatch
impl UnwindSafe for SgHttpPathMatch
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