Enum wampire::MatchingPolicy
[−]
[src]
pub enum MatchingPolicy { Prefix, Wildcard, Strict, }
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
impl PartialEq for MatchingPolicy
[src]
fn eq(&self, __arg_0: &MatchingPolicy) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Debug for MatchingPolicy
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MatchingPolicy
[src]
fn clone(&self) -> MatchingPolicy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for MatchingPolicy
[src]
impl Default for MatchingPolicy
[src]
fn default() -> MatchingPolicy
[src]
Returns the "default value" for a type. Read more
impl Serialize for MatchingPolicy
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for MatchingPolicy
[src]
fn deserialize<D>(deserializer: D) -> Result<MatchingPolicy, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more