pub trait WorkflowTaskGovernanceAuthorizer: Send + Sync {
// Required method
fn authorize(
&self,
principal: &WorkerId,
tenant_id: &WorkflowTenantId,
permission: WorkflowTaskGovernancePermission,
) -> WorkflowTaskGovernanceAuthorizationFuture<'_>;
}Expand description
Pluggable policy boundary for principal, tenant, and permission checks.
Required Methods§
Returns true only for an explicit grant.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".