pub trait PolicyCheck {
// Required methods
fn command_name(&self) -> &CommandName;
fn evaluate(&self) -> PolicyDecision;
}Expand description
Contract for policy checks.
Required Methods§
Sourcefn command_name(&self) -> &CommandName
fn command_name(&self) -> &CommandName
Returns the command governed by this policy.
Sourcefn evaluate(&self) -> PolicyDecision
fn evaluate(&self) -> PolicyDecision
Evaluates the policy.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".