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]
impl PartialEq for MatchingPolicy
fn eq(&self, other: &MatchingPolicy) -> bool
[src]
fn eq(&self, other: &MatchingPolicy) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Debug for MatchingPolicy
[src]
impl Debug for MatchingPolicy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for MatchingPolicy
[src]
impl Clone for MatchingPolicy
fn clone(&self) -> MatchingPolicy
[src]
fn clone(&self) -> MatchingPolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for MatchingPolicy
[src]
impl Copy for MatchingPolicy
impl Default for MatchingPolicy
[src]
impl Default for MatchingPolicy
fn default() -> MatchingPolicy
[src]
fn default() -> MatchingPolicy
Returns the "default value" for a type. Read more
impl Serialize for MatchingPolicy
[src]
impl Serialize for MatchingPolicy
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for MatchingPolicy
[src]
impl<'de> Deserialize<'de> for MatchingPolicy
fn deserialize<D>(deserializer: D) -> Result<MatchingPolicy, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<MatchingPolicy, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl Send for MatchingPolicy
impl Send for MatchingPolicy
impl Sync for MatchingPolicy
impl Sync for MatchingPolicy