Skip to main content

Approver

Trait Approver 

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

Source

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

Implementors§