Enum espresso::config::PathMatcherConfig
source · pub enum PathMatcherConfig {
StaticMatcher {
path: String,
},
PrefixMatcher {
prefix: String,
},
RegexMatcher {
pattern: String,
},
}
Expand description
Patch matcher configuration.
Tells the server how to match a path.
Variants
StaticMatcher
Fields
path: String
A simple exact text match. (Cheap)
PrefixMatcher
Fields
prefix: String
A prefix matcher.
RegexMatcher
Fields
pattern: String
A regex matcher. (Slightly more costly than exact text/prefix matches).
Trait Implementations
sourceimpl Clone for PathMatcherConfig
impl Clone for PathMatcherConfig
sourcefn clone(&self) -> PathMatcherConfig
fn clone(&self) -> PathMatcherConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PathMatcherConfig
impl Debug for PathMatcherConfig
sourceimpl<'de> Deserialize<'de> for PathMatcherConfig
impl<'de> Deserialize<'de> for PathMatcherConfig
sourcefn 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
sourceimpl PartialEq<PathMatcherConfig> for PathMatcherConfig
impl PartialEq<PathMatcherConfig> for PathMatcherConfig
sourcefn eq(&self, other: &PathMatcherConfig) -> bool
fn eq(&self, other: &PathMatcherConfig) -> bool
sourceimpl Serialize for PathMatcherConfig
impl Serialize for PathMatcherConfig
impl StructuralPartialEq for PathMatcherConfig
Auto Trait Implementations
impl RefUnwindSafe for PathMatcherConfig
impl Send for PathMatcherConfig
impl Sync for PathMatcherConfig
impl Unpin for PathMatcherConfig
impl UnwindSafe for PathMatcherConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more