Skip to main content

DispatchMethodPolicy

Trait DispatchMethodPolicy 

Source
pub trait DispatchMethodPolicy: Send + Sync {
    // Required method
    fn policy_for(
        &self,
        service_domain: &str,
        leaf_path: &str,
    ) -> Option<SignaturePolicy>;
}
Expand description

Resolves the generated policy row for one decoded leaf.

Rows are produced by code generation from the service schema; this trait is how the generated table reaches dispatch. There is no permissive default and no wildcard fallback: a leaf the table does not list denies.

Required Methods§

Source

fn policy_for( &self, service_domain: &str, leaf_path: &str, ) -> Option<SignaturePolicy>

Implementors§