[][src]Trait allow_me::Substituter

pub trait Substituter {
    type Context;
    pub fn visit_identity(
        &self,
        value: &str,
        context: &Request<Self::Context>
    ) -> Result<String, Error>;
pub fn visit_operation(
        &self,
        value: &str,
        context: &Request<Self::Context>
    ) -> Result<String, Error>;
pub fn visit_resource(
        &self,
        value: &str,
        context: &Request<Self::Context>
    ) -> Result<String, Error>; }

Trait to extend Policy variable rules resolution.

Associated Types

type Context[src]

The type of the context associated with the request.

Loading content...

Required methods

pub fn visit_identity(
    &self,
    value: &str,
    context: &Request<Self::Context>
) -> Result<String, Error>
[src]

This method is called by Policy on every Request for every variable identity rule.

pub fn visit_operation(
    &self,
    value: &str,
    context: &Request<Self::Context>
) -> Result<String, Error>
[src]

This method is called by Policy on every Request for every variable operation rule.

pub fn visit_resource(
    &self,
    value: &str,
    context: &Request<Self::Context>
) -> Result<String, Error>
[src]

This method is called by Policy on every Request for every variable resource rule.

Loading content...

Implementors

impl Substituter for DefaultSubstituter[src]

type Context = ()

Loading content...