Skip to main content

WorkflowTaskGovernanceAuthorizer

Trait WorkflowTaskGovernanceAuthorizer 

Source
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§

Source

fn authorize( &self, principal: &WorkerId, tenant_id: &WorkflowTenantId, permission: WorkflowTaskGovernancePermission, ) -> WorkflowTaskGovernanceAuthorizationFuture<'_>

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

Implementors§