Skip to main content

PolicyEngineImpl

Trait PolicyEngineImpl 

Source
pub trait PolicyEngineImpl {
    // Required method
    fn evaluate(&self, query: &PolicyQuery) -> PolicyDecision;
}
Expand description

A pluggable policy engine. Implemented by the native engine, the tf-cedar crate, and the tf-rego crate. Decoupling via a trait (rather than a feature-gated dependency on the adapter crates) lets tf-types stay lightweight while still letting the daemon dispatch the right engine for a given engine_hint.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§