[][src]Trait allow_me::matcher::ResourceMatcher

pub trait ResourceMatcher {
    type Context;
    pub fn do_match(
        &self,
        context: &Request<Self::Context>,
        input: &str,
        policy: &str
    ) -> bool; }

Trait to extend Policy resource matching.

Associated Types

type Context[src]

The type of the context associated with the request.

Loading content...

Required methods

pub fn do_match(
    &self,
    context: &Request<Self::Context>,
    input: &str,
    policy: &str
) -> bool
[src]

This method is being called by Policy when it tries to match a Request to a resource in the policy rules.

Loading content...

Implementors

impl ResourceMatcher for Default[src]

type Context = ()

impl ResourceMatcher for StartsWith[src]

type Context = ()

Loading content...