pub trait Approver: Sync {
// Required method
fn ask(
&self,
def: &AgentDefinition,
title: String,
message: String,
yes: &str,
no: &str,
) -> impl Future<Output = Result<Answer, String>> + Send;
}Expand description
Asks the person a yes or no about what def wants to do.
Required Methods§
fn ask( &self, def: &AgentDefinition, title: String, message: String, yes: &str, no: &str, ) -> impl Future<Output = Result<Answer, String>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".