pub enum UrlPattern {
Glob(String),
Regex(Regex),
}Expand description
URL pattern for matching requests.
Variants§
Glob(String)
Glob pattern (e.g., “/api/”, “*.png”).
*matches any characters except/**matches any characters including/
Regex(Regex)
Regular expression pattern.
Implementations§
Source§impl UrlPattern
impl UrlPattern
Trait Implementations§
Source§impl Clone for UrlPattern
impl Clone for UrlPattern
Source§fn clone(&self) -> UrlPattern
fn clone(&self) -> UrlPattern
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 UrlPattern
impl Debug for UrlPattern
Source§impl From<&str> for UrlPattern
impl From<&str> for UrlPattern
Source§impl From<Regex> for UrlPattern
impl From<Regex> for UrlPattern
Source§impl From<String> for UrlPattern
impl From<String> for UrlPattern
Source§impl UrlMatcher for UrlPattern
impl UrlMatcher for UrlPattern
Auto Trait Implementations§
impl Freeze for UrlPattern
impl RefUnwindSafe for UrlPattern
impl Send for UrlPattern
impl Sync for UrlPattern
impl Unpin for UrlPattern
impl UnwindSafe for UrlPattern
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