pub trait Approver:
Send
+ Sync
+ Debug {
// Required method
fn ask(&self, p: &Presentation) -> Answer;
// Provided methods
fn answer(&self, question: &str) -> Option<String> { ... }
fn via(&self) -> String { ... }
}Expand description
Asks a person, synchronously, while an attempt waits (a terminal prompt in the CLI, a permission request in an editor). The answer is journaled; replay never asks again.
Required Methods§
Sourcefn ask(&self, p: &Presentation) -> Answer
fn ask(&self, p: &Presentation) -> Answer
The person’s answer to the presented call.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".