pub enum PathMatch {
Prefix {
value: String,
},
RegularExpression {
value: Regex,
},
Exact {
value: String,
},
}
Expand description
Describes how to select a HTTP route by matching the HTTP request path. The
type
of a match specifies how HTTP paths should be compared.
PathPrefix and Exact paths must be syntactically valid:
- Must begin with the
/
character - Must not contain consecutive
/
characters (e.g./foo///
,//
)
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathMatch
impl<'de> Deserialize<'de> for PathMatch
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 Ord for PathMatch
impl Ord for PathMatch
Source§impl PartialOrd for PathMatch
impl PartialOrd for PathMatch
impl Eq for PathMatch
impl StructuralPartialEq for PathMatch
Auto Trait Implementations§
impl Freeze for PathMatch
impl RefUnwindSafe for PathMatch
impl Send for PathMatch
impl Sync for PathMatch
impl Unpin for PathMatch
impl UnwindSafe for PathMatch
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