Skip to main content

ThresholdApprovalRequirementResolver

Trait ThresholdApprovalRequirementResolver 

Source
pub trait ThresholdApprovalRequirementResolver: Send + Sync {
    // Required method
    fn resolve_requirement(
        &self,
        policy_hash: &str,
        server_id: &str,
        tool_name: &str,
    ) -> Result<Option<ThresholdApprovalRequirement>, String>;
}

Required Methods§

Source

fn resolve_requirement( &self, policy_hash: &str, server_id: &str, tool_name: &str, ) -> Result<Option<ThresholdApprovalRequirement>, String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§