pub struct RoutePattern {
pub provider: Option<String>,
pub feature: Option<String>,
pub operation: Option<String>,
}
Expand description
Pattern for matching routes
Fields§
§provider: Option<String>
§feature: Option<String>
§operation: Option<String>
Implementations§
Source§impl RoutePattern
impl RoutePattern
Sourcepub fn with_provider<S: Into<String>>(self, provider: S) -> Self
pub fn with_provider<S: Into<String>>(self, provider: S) -> Self
Set provider pattern
Sourcepub fn with_feature<S: Into<String>>(self, feature: S) -> Self
pub fn with_feature<S: Into<String>>(self, feature: S) -> Self
Set feature pattern
Sourcepub fn with_operation<S: Into<String>>(self, operation: S) -> Self
pub fn with_operation<S: Into<String>>(self, operation: S) -> Self
Set operation pattern
Sourcefn pattern_matches(&self, pattern: &str, value: &str) -> bool
fn pattern_matches(&self, pattern: &str, value: &str) -> bool
Simple pattern matching (supports * wildcard)
Trait Implementations§
Source§impl Clone for RoutePattern
impl Clone for RoutePattern
Source§fn clone(&self) -> RoutePattern
fn clone(&self) -> RoutePattern
Returns a copy 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 RoutePattern
impl Debug for RoutePattern
Auto Trait Implementations§
impl Freeze for RoutePattern
impl RefUnwindSafe for RoutePattern
impl Send for RoutePattern
impl Sync for RoutePattern
impl Unpin for RoutePattern
impl UnwindSafe for RoutePattern
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