Skip to main content

Policy

Trait Policy 

Source
pub trait Policy {
    // Required method
    fn decide(&self, pet: &Pet, service: &ServiceKind) -> Decision;
}
Expand description

Contract for policy evaluators that turn pet and service facts into explicit play-safety decisions.

Required Methods§

Source

fn decide(&self, pet: &Pet, service: &ServiceKind) -> Decision

Returns the pet for this policy value.

Implementors§