Enum wampire::MatchingPolicy
source · [−]pub enum MatchingPolicy {
Prefix,
Wildcard,
Strict,
}
Expand description
The policies that can be used for matching a uri pattern.
Variants
Prefix
The given pattern matches any URI that has it as a prefix
Wildcard
The given pattern contains at least one ‘wildcard’ segment which can match any segment at the same location
Strict
The given pattern only matches URIs that are identical.
Trait Implementations
sourceimpl Clone for MatchingPolicy
impl Clone for MatchingPolicy
sourcefn clone(&self) -> MatchingPolicy
fn clone(&self) -> MatchingPolicy
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 more
sourceimpl Debug for MatchingPolicy
impl Debug for MatchingPolicy
sourceimpl Default for MatchingPolicy
impl Default for MatchingPolicy
sourcefn default() -> MatchingPolicy
fn default() -> MatchingPolicy
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for MatchingPolicy
impl<'de> Deserialize<'de> for MatchingPolicy
sourcefn deserialize<D>(deserializer: D) -> Result<MatchingPolicy, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<MatchingPolicy, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MatchingPolicy> for MatchingPolicy
impl PartialEq<MatchingPolicy> for MatchingPolicy
sourceimpl Serialize for MatchingPolicy
impl Serialize for MatchingPolicy
impl Copy for MatchingPolicy
impl StructuralPartialEq for MatchingPolicy
Auto Trait Implementations
impl RefUnwindSafe for MatchingPolicy
impl Send for MatchingPolicy
impl Sync for MatchingPolicy
impl Unpin for MatchingPolicy
impl UnwindSafe for MatchingPolicy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more