pub struct LocationRulesMatcher {
pub map: BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>,
}Fields§
§map: BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>Implementations§
Source§impl LocationRulesMatcher
impl LocationRulesMatcher
pub fn match_rules( &self, path: &str, ) -> Result<(&LocationPattern, &[(LocationRuleExprs, RequestAction)]), MatchLocationFailed>
pub fn match_rule<'r, NewRequest>(
&'r self,
path: &str,
new_request: &NewRequest,
) -> Result<(&'r LocationPattern, RequestAction), MatchRuleFailed<MatchLocationFailed>>where
Rule<'r, AtomicLocationRuleExpr, RequestAction>: Evaluable<NewRequest, Value = Option<RequestAction>>,
Trait Implementations§
Source§impl Clone for LocationRulesMatcher
impl Clone for LocationRulesMatcher
Source§fn clone(&self) -> LocationRulesMatcher
fn clone(&self) -> LocationRulesMatcher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LocationRulesMatcher
impl Debug for LocationRulesMatcher
Source§impl Default for LocationRulesMatcher
impl Default for LocationRulesMatcher
Source§fn default() -> LocationRulesMatcher
fn default() -> LocationRulesMatcher
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocationRulesMatcher
impl<'de> Deserialize<'de> for LocationRulesMatcher
Source§fn 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
impl Eq for LocationRulesMatcher
Source§impl From<BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>> for LocationRulesMatcher
impl From<BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>> for LocationRulesMatcher
Source§fn from(
value: BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>,
) -> Self
fn from( value: BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>, ) -> Self
Converts to this type from the input type.
Source§impl From<LocationRulesMatcher> for BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>
impl From<LocationRulesMatcher> for BTreeMap<PatternWithTime<LocationPatternKind>, Vec<(LocationRuleExprs, RequestAction)>>
Source§fn from(value: LocationRulesMatcher) -> Self
fn from(value: LocationRulesMatcher) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LocationRulesMatcher
impl PartialEq for LocationRulesMatcher
Source§fn eq(&self, other: &LocationRulesMatcher) -> bool
fn eq(&self, other: &LocationRulesMatcher) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocationRulesMatcher
impl Serialize for LocationRulesMatcher
impl StructuralPartialEq for LocationRulesMatcher
Auto Trait Implementations§
impl Freeze for LocationRulesMatcher
impl RefUnwindSafe for LocationRulesMatcher
impl Send for LocationRulesMatcher
impl Sync for LocationRulesMatcher
impl Unpin for LocationRulesMatcher
impl UnsafeUnpin for LocationRulesMatcher
impl UnwindSafe for LocationRulesMatcher
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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