pub trait Gate:
Send
+ Sync
+ Debug {
// Required method
fn check(&self, req: &GateRequest) -> Result<GateDecision, GateError>;
// Provided method
fn impl_name(&self) -> &'static str { ... }
}Expand description
Authorization gate consulted before each verb dispatch.
Implementations live downstream:
AllowAllGate(this crate) — permissive defaultRegoGate(Apache-2.0 sibling cratekhive-gate-rego) — regorus-backed Rego evalLionGate<G>(khive-cloud, BUSL) — wraps anyGatewith lion-core capability witnesses for verifiable enforcement.
Required Methods§
Sourcefn check(&self, req: &GateRequest) -> Result<GateDecision, GateError>
fn check(&self, req: &GateRequest) -> Result<GateDecision, GateError>
Evaluates the authorization policy for req and returns a decision.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".