pub enum UrlPattern {
Exact(String),
Prefix(String),
Contains(String),
Regex(String),
Glob(String),
Any,
}Expand description
Pattern for matching request URLs
Variants§
Exact(String)
Exact URL match
Prefix(String)
Prefix match
Contains(String)
Contains substring
Regex(String)
Regex match
Glob(String)
Glob pattern (e.g., “**/api/users/*”)
Any
Match any URL
Implementations§
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<'de> Deserialize<'de> for UrlPattern
impl<'de> Deserialize<'de> for UrlPattern
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 Display for UrlPattern
impl Display 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 UnsafeUnpin 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