Skip to main content

PolicyCheck

Trait PolicyCheck 

Source
pub trait PolicyCheck {
    // Required methods
    fn command_name(&self) -> &CommandName;
    fn evaluate(&self) -> PolicyDecision;
}
Expand description

Contract for policy checks.

Required Methods§

Source

fn command_name(&self) -> &CommandName

Returns the command governed by this policy.

Source

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".

Implementors§