pub trait PolicyDecision {
    type Input: Serialize;
    type Output: DeserializeOwned;

    const POLICY_PATH: &'static str;
}
Expand description

A helper trait for defining strongly-typed input/decision pairs for given policies.

Required Associated Types

The input type for the decision.

The output type expected to be returned by OPA.

Required Associated Constants

A . or / separated path to the policy decision.

Implementors